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

Proposed by Javier Duran
Status: Merged
Approved by: Javier Duran
Approved revision: 651
Merged at revision: 651
Proposed branch: lp:~vauxoo/openerp-venezuela-localization/bug973723
Merge into: lp:~openerp-venezuela/openerp-venezuela-localization/6.0-trunk
Diff against target: 16 lines (+2/-4)
1 file modified
l10n_ve_fiscal_requirements/wizard/account_invoice_refund.py (+2/-4)
To merge this branch: bzr merge lp:~vauxoo/openerp-venezuela-localization/bug973723
Reviewer Review Type Date Requested Status
Javier Duran (community) Approve
Gabriela Quilarque Pending
Review via email: mp+101422@code.launchpad.net

Description of the change

Corrección al generar una nota de credito, esta debe ser agregada al historial de la orden de venta si la tiene de la factura padre.

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

Unida al trunk en:

revno: 651 [merge]
revision-id: javier@squezee-vir-20120410174821-bjye46z9pk210662

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'l10n_ve_fiscal_requirements/wizard/account_invoice_refund.py'
--- l10n_ve_fiscal_requirements/wizard/account_invoice_refund.py 2012-02-23 16:17:58 +0000
+++ l10n_ve_fiscal_requirements/wizard/account_invoice_refund.py 2012-04-10 17:42:32 +0000
@@ -266,10 +266,8 @@
266 if inv.type in ('out_invoice', 'out_refund'):266 if inv.type in ('out_invoice', 'out_refund'):
267 xml_id = 'action_invoice_tree3'267 xml_id = 'action_invoice_tree3'
268 if hasattr(inv, 'sale_ids'):268 if hasattr(inv, 'sale_ids'):
269 aux = {269 for i in inv.sale_ids:
270 'invoice_ids' : [(6, 0, created_inv)],270 cr.execute('insert into sale_order_invoice_rel (order_id,invoice_id) values (%s,%s)', (i.id, refund_id[0]))
271 }
272 self.pool.get('sale.order').write(cr, uid, [i.id for i in inv.sale_ids], aux, context=context)
273 else:271 else:
274 xml_id = 'action_invoice_tree4'272 xml_id = 'action_invoice_tree4'
275 result = mod_obj.get_object_reference(cr, uid, 'account', xml_id)273 result = mod_obj.get_object_reference(cr, uid, 'account', xml_id)