forked from techspawn/total_weight_reckoner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathacc_invoice_weight.xml
53 lines (48 loc) · 2.67 KB
/
acc_invoice_weight.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record model="ir.ui.view" id="account_order_weight_form">
<field name="name">account.invoice.form</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_form"/>
<field name="arch" type="xml">
<xpath expr="//notebook/page[@string='Invoice Lines']/group" position="replace">
<group>
<group class="oe_subtotal_footer">
<field name="in_weight_total"/>
<field name="in_net_weight_total"/>
</group>
<group class="oe_subtotal_footer oe_right">
<field name="amount_untaxed" widget="monetary" options="{'currency_field': 'currency_id'}"/>
<div>
<label for="amount_tax"/>
<button name="button_reset_taxes" states="draft,proforma2"
string="(update)" class="oe_link oe_edit_only"
type="object" help="Recompute taxes and total"/>
</div>
<field name="amount_tax" nolabel="1" widget="monetary" options="{'currency_field': 'currency_id'}"/>
<field name="amount_total" class="oe_subtotal_footer_separator" widget="monetary" options="{'currency_field': 'currency_id'}"/>
<field name="residual" groups="account.group_account_user" widget="monetary" options="{'currency_field': 'currency_id'}"/>
<field name="reconciled" invisible="1"/>
</group>
</group>
</xpath>
</field>
</record>
<record model="ir.ui.view" id="account_supplier_order_weight_form">
<field name="name">account.invoice.supplier.form</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_supplier_form"/>
<field name="arch" type="xml">
<xpath expr="//form/sheet/notebook/page[@string='Other Info']" position="inside">
<group>
<group class="oe_subtotal_footer">
<field name="in_weight_total"/>
<field name="in_net_weight_total"/>
</group>
</group>
</xpath>
</field>
</record>
</data>
</openerp>