Merge lp:~vauxoo/openerp-venezuela-localization/jose-split-invoice into lp:~openerp-venezuela/openerp-venezuela-localization/6.0-trunk

Status: Merged
Merged at revision: 611
Proposed branch: lp:~vauxoo/openerp-venezuela-localization/jose-split-invoice
Merge into: lp:~openerp-venezuela/openerp-venezuela-localization/6.0-trunk
Diff against target: 177 lines (+44/-9)
9 files modified
l10n_ve_split_invoice/invoice.py (+7/-3)
l10n_ve_withholding_islr/i18n/es.po (+5/-0)
l10n_ve_withholding_islr/i18n/es_VE.po (+6/-0)
l10n_ve_withholding_islr/islr_wh_report.xml (+4/-1)
l10n_ve_withholding_islr/view/islr_wh_doc_view.xml (+5/-3)
l10n_ve_withholding_iva/i18n/es.po (+5/-0)
l10n_ve_withholding_iva/i18n/es_VE.po (+5/-0)
l10n_ve_withholding_iva/report/withholding_vat_report.xml (+5/-2)
l10n_ve_withholding_iva/view/wh_iva_view.xml (+2/-0)
To merge this branch: bzr merge lp:~vauxoo/openerp-venezuela-localization/jose-split-invoice
Reviewer Review Type Date Requested Status
Gabriela Quilarque Approve
Review via email: mp+92363@code.launchpad.net

Description of the change

 Link the split invoice with sale order

To post a comment you must log in.
Revision history for this message
Gabriela Quilarque (gabrielaquilarque97) wrote :

Merge Realizado

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'l10n_ve_split_invoice/invoice.py'
2--- l10n_ve_split_invoice/invoice.py 2011-12-20 14:43:41 +0000
3+++ l10n_ve_split_invoice/invoice.py 2012-02-09 20:20:27 +0000
4@@ -46,13 +46,18 @@
5 'state': 'draft',
6 'number': False,
7 'invoice_line': [],
8- 'tax_line': []
9+ 'tax_line': [],
10 })
11 # take the id part of the tuple returned for many2one fields
12 for field in ('address_contact_id', 'address_invoice_id', 'partner_id',
13 'account_id', 'currency_id', 'payment_term', 'journal_id', 'period_id'):
14 invoice[field] = invoice[field] and invoice[field][0]
15-
16+
17+ if self.browse(cr,uid,inv.id,context={}).sale_ids:
18+ invoice.update({
19+ 'sale_ids':[(6,0,[i.id for i in self.browse(cr,uid,inv.id,context={}).sale_ids])]
20+ })
21+
22 inv_id = self.create(cr, uid, invoice)
23 cont = 0
24 lst = inv.invoice_line
25@@ -62,7 +67,6 @@
26 for il in lst:
27 self.pool.get('account.invoice.line').write(cr,uid,il.id,{'invoice_id':inv_id})
28 self.button_compute(cr, uid, [inv.id], set_total=True)
29-
30 if inv_id:
31 wf_service = netsvc.LocalService("workflow")
32 self.button_compute(cr, uid, [inv_id], set_total=True)
33
34=== modified file 'l10n_ve_withholding_islr/i18n/es.po'
35--- l10n_ve_withholding_islr/i18n/es.po 2012-01-17 00:07:23 +0000
36+++ l10n_ve_withholding_islr/i18n/es.po 2012-02-09 20:20:27 +0000
37@@ -21,6 +21,11 @@
38 msgstr "NO APLICA RETENCION"
39
40 #. module: l10n_ve_withholding_islr
41+#: view:islr.wh.doc:0
42+msgid "Print Withholding Income"
43+msgstr "Imprimir comprobante de retención"
44+
45+#. module: l10n_ve_withholding_islr
46 #: field:islr.wh.doc,date_uid:0
47 msgid "Withhold Date"
48 msgstr "Fecha de Retención"
49
50=== modified file 'l10n_ve_withholding_islr/i18n/es_VE.po'
51--- l10n_ve_withholding_islr/i18n/es_VE.po 2012-01-18 23:14:35 +0000
52+++ l10n_ve_withholding_islr/i18n/es_VE.po 2012-02-09 20:20:27 +0000
53@@ -26,6 +26,12 @@
54 msgstr "Fecha de Retención"
55
56 #. module: l10n_ve_withholding_islr
57+#: view:islr.wh.doc:0
58+msgid "Print Withholding Income"
59+msgstr "Imprimir comprobante de retención"
60+
61+
62+#. module: l10n_ve_withholding_islr
63 #: help:islr.wh.concept,rate_ids:0
64 msgid "Withholding Concept rate"
65 msgstr "Tasa asociada al concepto de retención"
66
67=== modified file 'l10n_ve_withholding_islr/islr_wh_report.xml'
68--- l10n_ve_withholding_islr/islr_wh_report.xml 2012-01-17 00:22:56 +0000
69+++ l10n_ve_withholding_islr/islr_wh_report.xml 2012-02-09 20:20:27 +0000
70@@ -8,7 +8,10 @@
71 rml="addons/l10n_ve_withholding_islr/report/wh_islr_report.rml"
72 string="Voucher Withholding Income"
73 auto="False"
74- header="False"/>
75+ header="False"
76+ menu="False"
77+ />
78+
79 <report
80 id="list_report_withholding_islr"
81 menu="True"
82
83=== modified file 'l10n_ve_withholding_islr/view/islr_wh_doc_view.xml'
84--- l10n_ve_withholding_islr/view/islr_wh_doc_view.xml 2012-01-27 14:03:00 +0000
85+++ l10n_ve_withholding_islr/view/islr_wh_doc_view.xml 2012-02-09 20:20:27 +0000
86@@ -143,8 +143,9 @@
87 <field name="state"/>
88 <button name="act_progress" string="Progress" states="draft" icon="gtk-go-forward"/>
89 <button name="act_confirmed" string="Confirmed" states="progress" icon="gtk-go-forward"/>
90- <button name="act_done" string="Done" states="confirmed" icon="gtk-execute"/>
91- <button name="act_cancel" string="Cancel" states="done" icon="gtk-cancel"/>
92+ <button name="act_done" string="Done" states="confirmed" icon="gtk-execute" />
93+ <button name="%(voucher_report_withholding_islr)d" string="Print Withholding Income" states="done" colspan="3" type="action" icon="gtk-execute"/>
94+ <button name="act_cancel" string="Cancel" states="done" icon="gtk-cancel" colspan="2" />
95 <button name="act_draft" colspan="2" string="Set to draft" states="cancel" icon="gtk-go-forward"/>
96 </group>
97 </form>
98@@ -284,7 +285,8 @@
99 <button name="act_progress" string="Progress" states="draft" type="workflow" icon="gtk-go-forward"/>
100 <button name="act_confirmed" string="Confirmed" states="progress" type="workflow" icon="gtk-go-forward"/>
101 <button name="act_done" string="Done" states="confirmed" type="workflow" icon="gtk-go-forward"/>
102- <button name="act_cancel" string="Cancel" states="done" type="workflow" icon="gtk-go-forward"/>
103+ <button name="%(voucher_report_withholding_islr)d" string="Print Withholding Income" colspan="3" states="done" type="action" icon="gtk-execute"/>
104+ <button name="act_cancel" string="Cancel" states="done" type="workflow" colspan="2" icon="gtk-go-forward"/>
105 <button name="act_draft" colspan="2" string="Set to draft" states="cancel" type="workflow" icon="gtk-go-forward"/>
106 </group>
107 </form>
108
109=== modified file 'l10n_ve_withholding_iva/i18n/es.po'
110--- l10n_ve_withholding_iva/i18n/es.po 2012-02-06 19:05:01 +0000
111+++ l10n_ve_withholding_iva/i18n/es.po 2012-02-09 20:20:27 +0000
112@@ -21,6 +21,11 @@
113 msgstr "Retención del IVA para leyes Venezolanas."
114
115 #. module: l10n_ve_withholding_iva
116+#: view:account.wh.iva:0
117+msgid "Print Voucher Withholding VAT"
118+msgstr "Imprimir comprobante de retención"
119+
120+#. module: l10n_ve_withholding_iva
121 #: help:account.wh.iva.line,move_id:0
122 msgid "Account entry"
123 msgstr "Cuenta de entrada"
124
125=== modified file 'l10n_ve_withholding_iva/i18n/es_VE.po'
126--- l10n_ve_withholding_iva/i18n/es_VE.po 2012-02-06 19:05:01 +0000
127+++ l10n_ve_withholding_iva/i18n/es_VE.po 2012-02-09 20:20:27 +0000
128@@ -26,6 +26,11 @@
129 msgstr "Cuenta de entrada"
130
131 #. module: l10n_ve_withholding_iva
132+#: view:account.wh.iva:0
133+msgid "Print Voucher Withholding VAT"
134+msgstr "Imprimir comprobante de retención"
135+
136+#. module: l10n_ve_withholding_iva
137 #: view:txt.iva:0
138 msgid "Withholding lines"
139 msgstr "Lineas de Retención"
140
141=== modified file 'l10n_ve_withholding_iva/report/withholding_vat_report.xml'
142--- l10n_ve_withholding_iva/report/withholding_vat_report.xml 2012-01-03 15:23:32 +0000
143+++ l10n_ve_withholding_iva/report/withholding_vat_report.xml 2012-02-09 20:20:27 +0000
144@@ -6,8 +6,11 @@
145 model="account.wh.iva"
146 name="account.wh.iva"
147 rml="addons/l10n_ve_withholding_iva/report/withholding_vat_report.rml"
148- string="Voucher Withhondig VAT"
149+ string="Voucher Withholding VAT"
150 auto="False"
151- header="True"/>
152+ header="True"
153+ menu="False"
154+ />
155+
156 </data>
157 </openerp>
158
159=== modified file 'l10n_ve_withholding_iva/view/wh_iva_view.xml'
160--- l10n_ve_withholding_iva/view/wh_iva_view.xml 2012-01-19 20:10:51 +0000
161+++ l10n_ve_withholding_iva/view/wh_iva_view.xml 2012-02-09 20:20:27 +0000
162@@ -176,6 +176,7 @@
163 </group>
164 <group col="2" colspan="2">
165 <button name="cancel" colspan="2" states="done" string="Cancel" icon="gtk-cancel"/>
166+ <button name="%(withholding_vat)d" type="action" colspan="2" states="done" string="Print Voucher Withholding VAT" icon="gtk-execute"/>
167 <button name="set_to_draft" colspan="2" states="cancel" string="Set to draft" icon="terp-stock_effects-object-colorize"/>
168 <button colspan="2" name="compute_amount_wh" states="draft" string="Compute Withholding Vat" type="object" icon="terp-stock_format-scientific"/>
169 <field name="amount_base_ret"/>
170@@ -227,6 +228,7 @@
171 </group>
172 <group col="2" colspan="2">
173 <button name="cancel" colspan="2" states="done" string="Cancel" icon="gtk-cancel"/>
174+ <button name="%(withholding_vat)d" type="action" colspan="2" states="done" string="Print Voucher Withholding VAT" icon="gtk-execute"/>
175 <button name="set_to_draft" colspan="2" states="cancel" string="Set to draft" icon="terp-stock_effects-object-colorize"/>
176
177 <!--