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
1=== modified file 'l10n_ve_fiscal_requirements/wizard/account_invoice_refund.py'
2--- l10n_ve_fiscal_requirements/wizard/account_invoice_refund.py 2012-02-23 16:17:58 +0000
3+++ l10n_ve_fiscal_requirements/wizard/account_invoice_refund.py 2012-04-10 17:42:32 +0000
4@@ -266,10 +266,8 @@
5 if inv.type in ('out_invoice', 'out_refund'):
6 xml_id = 'action_invoice_tree3'
7 if hasattr(inv, 'sale_ids'):
8- aux = {
9- 'invoice_ids' : [(6, 0, created_inv)],
10- }
11- self.pool.get('sale.order').write(cr, uid, [i.id for i in inv.sale_ids], aux, context=context)
12+ for i in inv.sale_ids:
13+ cr.execute('insert into sale_order_invoice_rel (order_id,invoice_id) values (%s,%s)', (i.id, refund_id[0]))
14 else:
15 xml_id = 'action_invoice_tree4'
16 result = mod_obj.get_object_reference(cr, uid, 'account', xml_id)