-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathaccount_invoice.xml
34 lines (30 loc) · 1.38 KB
/
account_invoice.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<odoo>
<record id="view_invoice_customer_return_form" model="ir.ui.view">
<field name="name">account.invoice.customer.return</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='payment_term_id']" position="after">
<field name="picking_id" class="oe_edit_only" options="{'no_create': True}"/>
</xpath>
<xpath expr="//field[@name='price_unit']" position="after">
<field name = "stock_move_id" invisible="1"/>
<field name = "cost_price" invisible="1"/>
</xpath>
</field>
</record>
<record id="view_invoice_supplier_return_form" model="ir.ui.view">
<field name="name">account.invoice.supplier.return</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_supplier_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='reference']" position="after">
<field name="picking_id" class="oe_edit_only" options="{'no_create': True}"/>
</xpath>
<xpath expr="//field[@name='price_unit']" position="after">
<field name = "stock_move_id" invisible="1"/>
<field name = "cost_price" invisible="1"/>
</xpath>
</field>
</record>
</odoo>