Merge lp:~vauxoo/openerp-venezuela-localization/javy-bug918556 into lp:~openerp-venezuela/openerp-venezuela-localization/6.0-trunk

Proposed by Javier Duran
Status: Merged
Merged at revision: 626
Proposed branch: lp:~vauxoo/openerp-venezuela-localization/javy-bug918556
Merge into: lp:~openerp-venezuela/openerp-venezuela-localization/6.0-trunk
Diff against target: 69 lines (+43/-1)
3 files modified
l10n_ve_withholding_iva/i18n/es.po (+12/-0)
l10n_ve_withholding_iva/i18n/es_VE.po (+12/-0)
l10n_ve_withholding_iva/model/wh_iva.py (+19/-1)
To merge this branch: bzr merge lp:~vauxoo/openerp-venezuela-localization/javy-bug918556
Reviewer Review Type Date Requested Status
Gabriela Quilarque Approve
Javier Duran (community) Approve
Nhomar - Vauxoo Pending
Review via email: mp+90019@code.launchpad.net

Description of the change

Se agrega método copy para evitar que se dupliquen retenciones de iva de proveedores, en el modulo l10n_ve_withholding_iva y elimina los enlaces a facturas en las retenciones de iva de clientes.

To post a comment you must log in.
Revision history for this message
Javier Duran (javieredm) wrote :

Chic@s revisen a ver si hay otro campo que limpiar en las retenciones de cliente.

review: Approve
Revision history for this message
Gabriela Quilarque (gabrielaquilarque97) wrote :

Merge Realizado y Probado.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'l10n_ve_withholding_iva/i18n/es.po'
2--- l10n_ve_withholding_iva/i18n/es.po 2012-01-05 17:04:56 +0000
3+++ l10n_ve_withholding_iva/i18n/es.po 2012-01-24 23:52:24 +0000
4@@ -1106,3 +1106,15 @@
5 #, python-format
6 msgid "File TXT %s generated."
7 msgstr "Archivo TXT %s generado."
8+
9+#. module: l10n_ve_withholding_iva
10+#: code:addons/l10n_ve_withholding_iva/model/wh_iva.py:535
11+#, python-format
12+msgid "you can not duplicate this document!!!"
13+msgstr "Ud. no puede duplicar este documento!!!"
14+
15+#. module: l10n_ve_withholding_iva
16+#: code:addons/l10n_ve_withholding_iva/model/wh_iva.py:535
17+#, python-format
18+msgid "Alert !"
19+msgstr "Atención !"
20
21=== modified file 'l10n_ve_withholding_iva/i18n/es_VE.po'
22--- l10n_ve_withholding_iva/i18n/es_VE.po 2012-01-24 15:35:54 +0000
23+++ l10n_ve_withholding_iva/i18n/es_VE.po 2012-01-24 23:52:24 +0000
24@@ -1283,3 +1283,15 @@
25 msgid "No. Nota Débito"
26 msgstr "No. Nota Débito"
27
28+#. module: l10n_ve_withholding_iva
29+#: code:addons/l10n_ve_withholding_iva/model/wh_iva.py:535
30+#, python-format
31+msgid "you can not duplicate this document!!!"
32+msgstr "Ud. no puede duplicar este documento!!!"
33+
34+#. module: l10n_ve_withholding_iva
35+#: code:addons/l10n_ve_withholding_iva/model/wh_iva.py:535
36+#, python-format
37+msgid "Alert !"
38+msgstr "Atención !"
39+
40
41=== modified file 'l10n_ve_withholding_iva/model/wh_iva.py'
42--- l10n_ve_withholding_iva/model/wh_iva.py 2012-01-24 15:35:54 +0000
43+++ l10n_ve_withholding_iva/model/wh_iva.py 2012-01-24 23:52:24 +0000
44@@ -524,6 +524,24 @@
45 if whl_ids:
46 awil_obj.load_taxes(cr, uid, whl_ids , context=context)
47 return True
48-
49+
50+
51+ def copy(self, cr, uid, id, default=None, context=None):
52+ if not default:
53+ default = {}
54+ if context is None:
55+ context = {}
56+ if self.browse(cr, uid, id, context=context).type == 'in_invoice':
57+ raise osv.except_osv(_('Alert !'), _('you can not duplicate this document!!!'))
58+
59+ default.update({
60+ 'state':'draft',
61+ 'number':False,
62+ 'code':False,
63+ 'wh_lines': [],
64+ 'period_id': False
65+ })
66+
67+ return super(account_wh_iva, self).copy(cr, uid, id, default, context)
68
69 account_wh_iva()