Merge lp:~vauxoo/openerp-venezuela-localization/miguel-bug-938354 into lp:~openerp-venezuela/openerp-venezuela-localization/6.0-trunk

Proposed by Miguel Delgado (Vauxoo)
Status: Merged
Merge reported by: hbto [Vauxoo] http://www.vauxoo.com
Merged at revision: not available
Proposed branch: lp:~vauxoo/openerp-venezuela-localization/miguel-bug-938354
Merge into: lp:~openerp-venezuela/openerp-venezuela-localization/6.0-trunk
Diff against target: 92 lines (+22/-22)
4 files modified
l10n_ve_fiscal_reports/invoice.py (+0/-3)
l10n_ve_fiscal_reports/invoice_view.xml (+0/-16)
l10n_ve_fiscal_requirements/account_invoice_view.xml (+21/-3)
l10n_ve_fiscal_requirements/invoice.py (+1/-0)
To merge this branch: bzr merge lp:~vauxoo/openerp-venezuela-localization/miguel-bug-938354
Reviewer Review Type Date Requested Status
Gabriela Quilarque Pending
Review via email: mp+94260@code.launchpad.net

Description of the change

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'l10n_ve_fiscal_reports/invoice.py'
2--- l10n_ve_fiscal_reports/invoice.py 2011-12-29 04:02:48 +0000
3+++ l10n_ve_fiscal_reports/invoice.py 2012-02-22 19:37:03 +0000
4@@ -33,9 +33,6 @@
5 class inherited_invoice(osv.osv):
6 _inherit = "account.invoice"
7 _columns = {
8- 'date_document': fields.date("Document Date",
9- help="Administrative date",
10- select=True),
11 'date_invoice': fields.date('Fecha Contable',
12 states={'open':[('readonly',True)],
13 'close':[('readonly',True)],
14
15=== modified file 'l10n_ve_fiscal_reports/invoice_view.xml'
16--- l10n_ve_fiscal_reports/invoice_view.xml 2012-02-07 03:14:19 +0000
17+++ l10n_ve_fiscal_reports/invoice_view.xml 2012-02-22 19:37:03 +0000
18@@ -1,19 +1,6 @@
19 <?xml version="1.0" encoding="utf-8"?>
20 <openerp>
21 <data>
22- <record model="ir.ui.view" id="inherited_account_invoice_form_fiscal">
23- <field name="name">account.invoice.inherit.fiscal</field>
24- <field name="model">account.invoice</field>
25- <field name="inherit_id" ref="account.invoice_form"/>
26- <field name="arch" type="xml">
27- <data>
28- <field name="date_invoice" position="after">
29- <field name="date_document"/>
30- </field>
31- </data>
32- </field>
33- </record>
34-
35 <record model="ir.ui.view" id="inherited_account_invoice_form_fiscal2">
36 <field name="name">account.invoice.inherit.fiscal2</field>
37 <field name="model">account.invoice</field>
38@@ -22,9 +9,6 @@
39 <xpath expr="/form/group/group" position="after">
40 <field name="expedient" attrs="{'readonly':[('type','in',['out_invoice','out_refund'])]}"/>
41 </xpath>
42- <xpath expr='//field[@name="date_due"]' position="after">
43- <field name="date_document"/>
44- </xpath>
45 </field>
46 </record>
47 </data>
48
49=== modified file 'l10n_ve_fiscal_requirements/account_invoice_view.xml'
50--- l10n_ve_fiscal_requirements/account_invoice_view.xml 2012-01-26 22:12:56 +0000
51+++ l10n_ve_fiscal_requirements/account_invoice_view.xml 2012-02-22 19:37:03 +0000
52@@ -90,9 +90,27 @@
53 </record>
54
55
56-
57-
58-
59+ <record model="ir.ui.view" id="inherited_account_invoice_form_fiscal">
60+ <field name="name">account.invoice.inherit.fiscal</field>
61+ <field name="model">account.invoice</field>
62+ <field name="inherit_id" ref="account.invoice_form"/>
63+ <field name="arch" type="xml">
64+ <xpath expr="//field[@name='date_invoice']" position="after">
65+ <field name="date_document"/>
66+ </xpath>
67+ </field>
68+ </record>
69+
70+ <record model="ir.ui.view" id="inherited_account_invoice_form_fiscal3">
71+ <field name="name">account.invoice.inherit.fiscal3</field>
72+ <field name="model">account.invoice</field>
73+ <field name="inherit_id" ref="account.invoice_supplier_form"/>
74+ <field name="arch" type="xml">
75+ <xpath expr='//field[@name="date_due"]' position="after">
76+ <field name="date_document"/>
77+ </xpath>
78+ </field>
79+ </record>
80
81 </data>
82 </openerp>
83
84=== modified file 'l10n_ve_fiscal_requirements/invoice.py'
85--- l10n_ve_fiscal_requirements/invoice.py 2012-01-02 16:27:26 +0000
86+++ l10n_ve_fiscal_requirements/invoice.py 2012-02-22 19:37:03 +0000
87@@ -33,6 +33,7 @@
88 'sin_cred': fields.boolean('Tax-exempt?', readonly=False, help="Set it true if the invoice is V.A.T. exempt"),
89 'parent_id':fields.many2one('account.invoice', 'Parent Invoice', readonly=True, states={'draft':[('readonly',False)]}, help='When this field has information, this invoice is a credit note or debit note. This field is used to reference to the invoice that originated this credit note or debit note.'),
90 'child_ids':fields.one2many('account.invoice', 'parent_id', 'Debit and Credit Notes', readonly=True, states={'draft':[('readonly',False)]}),
91+ 'date_document': fields.date("Document Date",help="Administrative date",select=True),
92 }
93
94