Merge lp:~vauxoo/openerp-venezuela-localization/rodolfo-l10n_ve_wh_islr-logs into lp:~openerp-venezuela/openerp-venezuela-localization/6.0-trunk

Proposed by Rodolfo Alvarez(Vauxoo)
Status: Merged
Merged at revision: 548
Proposed branch: lp:~vauxoo/openerp-venezuela-localization/rodolfo-l10n_ve_wh_islr-logs
Merge into: lp:~openerp-venezuela/openerp-venezuela-localization/6.0-trunk
Diff against target: 96 lines (+31/-2) (has conflicts)
3 files modified
l10n_ve_withholding_islr/i18n/es_VE.po (+20/-0)
l10n_ve_withholding_islr/invoice.py (+5/-0)
l10n_ve_withholding_islr/islr_wh_doc.py (+6/-2)
Text conflict in l10n_ve_withholding_islr/i18n/es_VE.po
To merge this branch: bzr merge lp:~vauxoo/openerp-venezuela-localization/rodolfo-l10n_ve_wh_islr-logs
Reviewer Review Type Date Requested Status
Gabriela Quilarque Pending
Review via email: mp+82710@code.launchpad.net

Description of the change

logs added in vouchers and xml lines generation. File es_VE.po hass been modified, the translation to spanish has been improved.

To post a comment you must log in.
481. By Gabriela Quilarque

[IMP] Optimized Code.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'l10n_ve_withholding_islr/i18n/es_VE.po'
2--- l10n_ve_withholding_islr/i18n/es_VE.po 2011-11-17 23:15:16 +0000
3+++ l10n_ve_withholding_islr/i18n/es_VE.po 2011-11-18 18:56:24 +0000
4@@ -1423,6 +1423,7 @@
5 msgid "Impossible withholding income, because the lines of the invoice has not concept withholding!"
6 msgstr "Imposible realizar retención de ISLR, porque las lineas de la factura no tienen concepto de retención asociado!"
7
8+<<<<<<< TREE
9 #. module: l10n_ve_withholding_islr
10 #: view:wh.islr.config:0
11 msgid "Withholding income Configuration"
12@@ -1446,3 +1447,22 @@
13 #: model:ir.actions.act_window,name:l10n_ve_withholding_islr.action_config_wh_islr
14 msgid "Configure Income Withholding"
15 msgstr "Configuración de la Retención de ISLR"
16+=======
17+#. module: l10n_ve_withholding_islr
18+#: code:addons/l10n_ve_withholding_islr/invoice.py:305
19+#, python-format
20+msgid "Withholding income xml line generated."
21+msgstr "Línea xml de retención de ISLR generada."
22+
23+#. module: l10n_ve_withholding_islr
24+#: code:addons/l10n_ve_withholding_islr/invoice.py:574
25+#, python-format
26+msgid "Withholding income voucher %s generated."
27+msgstr "Comprobante de retención de ISLR %s generado."
28+
29+#. module: l10n_ve_withholding_islr
30+#: code:addons/l10n_ve_withholding_islr/islr_wh_doc.py:318
31+#, python-format
32+msgid "Withholding income voucher %s validated and accounting entry generated."
33+msgstr "Comprobante de retención de ISLR %s validado y asiento contable generado."
34+>>>>>>> MERGE-SOURCE
35
36=== modified file 'l10n_ve_withholding_islr/invoice.py'
37--- l10n_ve_withholding_islr/invoice.py 2011-11-17 22:24:35 +0000
38+++ l10n_ve_withholding_islr/invoice.py 2011-11-18 18:56:24 +0000
39@@ -302,6 +302,8 @@
40 self.pool.get('account.invoice.line').write(cr, uid, line, {'apply_wh': apply})
41 else:
42 self.pool.get('account.invoice.line').write(cr, uid, line, {'apply_wh': apply,'wh_xml_id':self._create_islr_xml_wh_line(cr, uid,line,dict)})
43+ message = _("Withholding income xml line generated.")
44+ self.log(cr, uid, line, message)
45
46 def _create_islr_xml_wh_line(self,cr, uid, line, dict):
47 '''
48@@ -567,6 +569,9 @@
49 self._create_doc_invoices(cr,uid,key,islr_wh_doc_id)
50
51 self.pool.get('account.invoice').write(cr,uid,inv_brw.invoice_id.id,{'islr_wh_doc_id':islr_wh_doc_id})
52+
53+ message = _("Withholding income voucher '%s' generated.") % self.pool.get('islr.wh.doc').browse(cr,uid,islr_wh_doc_id).name
54+ self.log(cr, uid, islr_wh_doc_id, message)
55 else:
56 pass
57 else:
58
59=== modified file 'l10n_ve_withholding_islr/islr_wh_doc.py'
60--- l10n_ve_withholding_islr/islr_wh_doc.py 2011-10-25 20:33:16 +0000
61+++ l10n_ve_withholding_islr/islr_wh_doc.py 2011-11-18 18:56:24 +0000
62@@ -141,7 +141,7 @@
63 for wh_doc in wh_doc_brw:
64 for wh_doc_line in wh_doc.islr_wh_doc_id:
65 inv_ids.append(wh_doc_line.id)
66-
67+
68 context["wh_doc_id"]=ids[0]
69 inv_obj.action_ret_islr(cr, uid, inv_ids,context)
70 return True
71@@ -254,6 +254,7 @@
72 wh_doc_obj = self.pool.get('islr.wh.doc.line')
73 context = {}
74 inv_id = None
75+ doc_brw = None
76
77 for ret in self.browse(cr, uid, ids):
78 if not ret.date_uid:
79@@ -303,6 +304,10 @@
80 lines = [(1, line.id, rl)]
81 self.write(cr, uid, [ret.id], {'concept_ids':lines})
82
83+ if lines:
84+ message = _("Withholding income voucher '%s' validated and accounting entry generated.") % self.browse(cr, uid, ids[0]).name
85+ self.log(cr, uid, ids[0], message)
86+
87 for line in ret.concept_ids:
88 for xml in line.xml_ids:
89 if xml.islr_xml_wh_doc.state!='done':
90@@ -310,7 +315,6 @@
91 self.pool.get('islr.xml.wh.line').write(cr,uid,xml.id,{'period_id':period_id, 'islr_xml_wh_doc':None})
92 else:
93 raise osv.except_osv(_('Invalid action !'),_("Impossible change the period accountig to a withholding that has already been declared."))
94-
95 # inv_obj.write(cr, uid, line.invoice_id.id, {'retention':True}, context=context)
96 return True
97