~vauxoo/addons-vauxoo/7.0-changes-in-openerp-alan

543.2.45 by Julio Serna
[V7-MIGRATION]
1
<?xml version='1.0' encoding='utf-8'?>
364.3.5 by Rodolfo Lopez
[FIX][account_voucher] new view and delete prints
2
<openerp>
3
    <data>
4
501.1.108 by Rodolfo Lopez
[REF][account_voucher_tax] genera poliza desde la linea del impuesto de la linea del pago, funciona con pago clientes y proovedores, ademas de multimoneda
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">
543.2.45 by Julio Serna
[V7-MIGRATION]
9
                <form string="Voucher Line Tax" version="7.0">
501.1.108 by Rodolfo Lopez
[REF][account_voucher_tax] genera poliza desde la linea del impuesto de la linea del pago, funciona con pago clientes y proovedores, ademas de multimoneda
10
                    <field name="tax_id"/>
11
                    <field name="account_id"/>
543.27.4 by Rodo
[FIX][account_voucher_tax] change credit-debit if retention tax
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" />
501.1.108 by Rodolfo Lopez
[REF][account_voucher_tax] genera poliza desde la linea del impuesto de la linea del pago, funciona con pago clientes y proovedores, ademas de multimoneda
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">
543.27.1 by Rodo
[V7-MIGRATION]
27
                <tree string="Voucher Line Tax" editable="bottom">
501.1.108 by Rodolfo Lopez
[REF][account_voucher_tax] genera poliza desde la linea del impuesto de la linea del pago, funciona con pago clientes y proovedores, ademas de multimoneda
28
                    <field name="tax_id"/>
29
                    <field name="account_id"/>
543.27.4 by Rodo
[FIX][account_voucher_tax] change credit-debit if retention tax
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" />
501.1.108 by Rodolfo Lopez
[REF][account_voucher_tax] genera poliza desde la linea del impuesto de la linea del pago, funciona con pago clientes y proovedores, ademas de multimoneda
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
543.27.1 by Rodo
[V7-MIGRATION]
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">
543.27.4 by Rodo
[FIX][account_voucher_tax] change credit-debit if retention tax
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>
543.27.1 by Rodo
[V7-MIGRATION]
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>
501.1.108 by Rodolfo Lopez
[REF][account_voucher_tax] genera poliza desde la linea del impuesto de la linea del pago, funciona con pago clientes y proovedores, ademas de multimoneda
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>
364.3.5 by Rodolfo Lopez
[FIX][account_voucher] new view and delete prints
95
                </field>
96
        </record>
543.30.3 by Luis Tores
[IMP][account_voucher_tax]Complete onchange and added onchange in amount in voucher_line
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">
980.1.2 by Luis Tores
[FIX][account_voucher_tax]Repair the onchange_amount from account_voucher_line, for inerith the function
104
                        <field name="amount" on_change="onchange_amount(amount, amount_unreconciled, context, voucher_id, move_line_id, amount_original)"/>
543.30.3 by Luis Tores
[IMP][account_voucher_tax]Complete onchange and added onchange in amount in voucher_line
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>
980.1.2 by Luis Tores
[FIX][account_voucher_tax]Repair the onchange_amount from account_voucher_line, for inerith the function
115
                     <xpath expr="//field[@name='amount_original']" position="after">
116
                        <field name="amount_unreconciled" invisible='1'/>
117
                     </xpath>
543.30.3 by Luis Tores
[IMP][account_voucher_tax]Complete onchange and added onchange in amount in voucher_line
118
                </field>
119
        </record>
364.3.5 by Rodolfo Lopez
[FIX][account_voucher] new view and delete prints
120
121
    </data>
122
</openerp>