1
<?xml version='1.0' encoding='utf-8'?>
5
<record model="ir.ui.view" id="view_voucher_line_tax">
6
<field name="name">voucher.line.tax</field>
7
<field name="model">account.voucher.line.tax</field>
8
<field name="arch" type="xml">
9
<form string="Voucher Line Tax" version="7.0">
10
<field name="tax_id"/>
11
<field name="account_id"/>
12
<field name="amount_tax" on_change="onchange_amount_tax(amount_tax, tax)"/>
13
<field name="amount_tax_unround" invisible="1" />
14
<field name="tax" invisible="1" />
15
<field name="original_tax"/>
16
<field name="balance_tax"/>
17
<field name="diff_amount_tax"/>
18
<field name="diff_account_id"/>
23
<record model="ir.ui.view" id="view_voucher_line_tax_tree">
24
<field name="name">voucher.line.tax.tree</field>
25
<field name="model">account.voucher.line.tax</field>
26
<field name="arch" type="xml">
27
<tree string="Voucher Line Tax" editable="bottom">
28
<field name="tax_id"/>
29
<field name="account_id"/>
30
<field name="amount_tax" on_change="onchange_amount_tax(amount_tax, tax)"/>
31
<field name="amount_tax_unround" invisible="1" />
32
<field name="tax" invisible="1" />
33
<field name="original_tax"/>
34
<field name="balance_tax"/>
35
<field name="diff_amount_tax"/>
36
<field name="diff_account_id"/>
42
<record id="view_account_voucher_lines_dr" model="ir.ui.view">
43
<field name="name">view.account.voucher.lines.dr</field>
44
<field name="model">account.voucher</field>
45
<field name="inherit_id" ref="account_voucher.view_vendor_receipt_form"/>
46
<field name="arch" type="xml">
47
<xpath expr="//field[@name='line_cr_ids']" position="replace">
48
<field name="line_cr_ids" context="{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}" on_change="onchange_line_ids(line_dr_ids, line_cr_ids, amount, currency_id, type, context)">
49
<tree string="Invoices and outstanding transactions" colors="gray:amount==0">
50
<field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}" on_change="onchange_move_line_id(move_line_id)" domain="[('account_id.type','in',('receivable','payable')), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]" required="1" groups="account.group_account_user"/>
51
<field name="account_id" groups="base.group_no_one" domain="[('type','=','receivable')]"/>
52
<field name="date_original" readonly="1"/>
53
<field name="date_due" readonly="1"/>
54
<field name="amount_original" readonly="1"/>
55
<field name="amount_unreconciled" readonly="1" groups="account.group_account_user"/>
56
<field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)" groups="account.group_account_user"/>
57
<field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)" string="Allocation"/>
65
<record id="view_account_voucher_lines_dr_payment" model="ir.ui.view">
66
<field name="name">view.account.voucher.lines.dr.payment</field>
67
<field name="model">account.voucher</field>
68
<field name="inherit_id" ref="account_voucher.view_vendor_payment_form"/>
69
<field name="arch" type="xml">
70
<xpath expr="//field[@name='line_dr_ids']" position="replace">
71
<field name="line_dr_ids" context="{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}">
72
<tree string="Supplier Invoices and Outstanding transactions" colors="gray:amount==0">
73
<field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}" on_change="onchange_move_line_id(move_line_id)" domain="[('account_id.type','=','payable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]" required="1"/>
74
<field name="account_id" groups="base.group_no_one" domain="[('type','=','payable')]"/>
75
<field name="date_original" readonly="1"/>
76
<field name="date_due" readonly="1"/>
77
<field name="amount_original" readonly="1"/>
78
<field name="amount_unreconciled" readonly="1" groups="account.group_account_user"/>
79
<field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)" groups="account.group_account_user"/>
80
<field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)"/>
87
<record id="view_account_voucher_line_tax" model="ir.ui.view">
88
<field name="name">view.account.voucher.line.tax</field>
89
<field name="model">account.voucher.line</field>
90
<field name="inherit_id" ref="account_voucher.view_voucher_line_form"/>
91
<field name="arch" type="xml">
92
<field name="amount" position="after">
93
<field name="tax_line_ids" colspan="4" nolabel="1"/>
98
<record id="view_account_voucher_line_onchange" model="ir.ui.view">
99
<field name="name">view.account.voucher.line.onchange</field>
100
<field name="model">account.voucher.line</field>
101
<field name="inherit_id" ref="account_voucher.view_voucher_line_form"/>
102
<field name="arch" type="xml">
103
<xpath expr="//field[@name='amount']" position="replace">
104
<field name="amount" on_change="onchange_amount(amount, voucher_id, move_line_id, amount_original)"/>
106
<xpath expr="//field[@name='amount']" position="after">
107
<field name="voucher_id" invisible='1'/>
109
<xpath expr="//field[@name='voucher_id']" position="after">
110
<field name="move_line_id" invisible='1'/>
112
<xpath expr="//field[@name='move_line_id']" position="after">
113
<field name="amount_original" invisible='1'/>