~vauxoo/addons-vauxoo/6.0-trunk

« back to all changes in this revision

Viewing changes to account_voucher_tax/account_voucher_tax_view.xml

[ADD] [product_customs_rate] Add new module product_customs_rate

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version='1.0' encoding='utf-8'?>
2
 
<openerp>
3
 
    <data>
4
 
 
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"/>
19
 
                </form>
20
 
            </field>
21
 
        </record>
22
 
 
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"/>
37
 
                </tree>
38
 
            </field>
39
 
        </record>
40
 
 
41
 
 
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"/>
58
 
                                </tree>
59
 
                            </field>
60
 
                     </xpath>
61
 
                </field>
62
 
        </record>
63
 
 
64
 
 
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)"/> 
81
 
                            </tree> 
82
 
                        </field>
83
 
                     </xpath>
84
 
                </field>
85
 
        </record>
86
 
 
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"/>
94
 
                     </field>
95
 
                </field>
96
 
        </record>
97
 
        
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)"/>
105
 
                     </xpath>
106
 
                     <xpath expr="//field[@name='amount']" position="after">
107
 
                        <field name="voucher_id" invisible='1'/>
108
 
                     </xpath>
109
 
                     <xpath expr="//field[@name='voucher_id']" position="after">
110
 
                        <field name="move_line_id" invisible='1'/>
111
 
                     </xpath>
112
 
                     <xpath expr="//field[@name='move_line_id']" position="after">
113
 
                        <field name="amount_original" invisible='1'/>
114
 
                     </xpath>
115
 
                </field>
116
 
        </record>
117
 
 
118
 
    </data>
119
 
</openerp>