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
=== modified file 'l10n_ve_withholding_iva/i18n/es.po'
--- l10n_ve_withholding_iva/i18n/es.po 2012-01-05 17:04:56 +0000
+++ l10n_ve_withholding_iva/i18n/es.po 2012-01-24 23:52:24 +0000
@@ -1106,3 +1106,15 @@
1106#, python-format1106#, python-format
1107msgid "File TXT %s generated."1107msgid "File TXT %s generated."
1108msgstr "Archivo TXT %s generado."1108msgstr "Archivo TXT %s generado."
1109
1110#. module: l10n_ve_withholding_iva
1111#: code:addons/l10n_ve_withholding_iva/model/wh_iva.py:535
1112#, python-format
1113msgid "you can not duplicate this document!!!"
1114msgstr "Ud. no puede duplicar este documento!!!"
1115
1116#. module: l10n_ve_withholding_iva
1117#: code:addons/l10n_ve_withholding_iva/model/wh_iva.py:535
1118#, python-format
1119msgid "Alert !"
1120msgstr "Atención !"
11091121
=== modified file 'l10n_ve_withholding_iva/i18n/es_VE.po'
--- l10n_ve_withholding_iva/i18n/es_VE.po 2012-01-24 15:35:54 +0000
+++ l10n_ve_withholding_iva/i18n/es_VE.po 2012-01-24 23:52:24 +0000
@@ -1283,3 +1283,15 @@
1283msgid "No. Nota Débito"1283msgid "No. Nota Débito"
1284msgstr "No. Nota Débito"1284msgstr "No. Nota Débito"
12851285
1286#. module: l10n_ve_withholding_iva
1287#: code:addons/l10n_ve_withholding_iva/model/wh_iva.py:535
1288#, python-format
1289msgid "you can not duplicate this document!!!"
1290msgstr "Ud. no puede duplicar este documento!!!"
1291
1292#. module: l10n_ve_withholding_iva
1293#: code:addons/l10n_ve_withholding_iva/model/wh_iva.py:535
1294#, python-format
1295msgid "Alert !"
1296msgstr "Atención !"
1297
12861298
=== modified file 'l10n_ve_withholding_iva/model/wh_iva.py'
--- l10n_ve_withholding_iva/model/wh_iva.py 2012-01-24 15:35:54 +0000
+++ l10n_ve_withholding_iva/model/wh_iva.py 2012-01-24 23:52:24 +0000
@@ -524,6 +524,24 @@
524 if whl_ids:524 if whl_ids:
525 awil_obj.load_taxes(cr, uid, whl_ids , context=context) 525 awil_obj.load_taxes(cr, uid, whl_ids , context=context)
526 return True526 return True
527 527
528
529 def copy(self, cr, uid, id, default=None, context=None):
530 if not default:
531 default = {}
532 if context is None:
533 context = {}
534 if self.browse(cr, uid, id, context=context).type == 'in_invoice':
535 raise osv.except_osv(_('Alert !'), _('you can not duplicate this document!!!'))
536
537 default.update({
538 'state':'draft',
539 'number':False,
540 'code':False,
541 'wh_lines': [],
542 'period_id': False
543 })
544
545 return super(account_wh_iva, self).copy(cr, uid, id, default, context)
528546
529account_wh_iva()547account_wh_iva()