Merge lp:~openerp-dev/openobject-addons/trunk-bug-1096061-nco into lp:openobject-addons

Proposed by Nimesh Contractor(Open ERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1096061-nco
Merge into: lp:openobject-addons
Diff against target: 15 lines (+2/-2)
1 file modified
account/wizard/account_invoice_refund.py (+2/-2)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1096061-nco
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+142112@code.launchpad.net

Description of the change

Hello,

      Fix the traceback of Refund customer invoice having type = modify.

Thanks,
 NCO.

To post a comment you must log in.

Unmerged revisions

8495. By Nimesh Contractor(Open ERP)

[FIX] replce read by browse.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'account/wizard/account_invoice_refund.py'
--- account/wizard/account_invoice_refund.py 2012-12-18 17:42:25 +0000
+++ account/wizard/account_invoice_refund.py 2013-01-07 13:39:25 +0000
@@ -183,9 +183,9 @@
183 'journal_id', 'period_id'], context=context)183 'journal_id', 'period_id'], context=context)
184 invoice = invoice[0]184 invoice = invoice[0]
185 del invoice['id']185 del invoice['id']
186 invoice_lines = inv_line_obj.read(cr, uid, invoice['invoice_line'], context=context)186 invoice_lines = inv_line_obj.browse(cr, uid, invoice['invoice_line'], context=context)
187 invoice_lines = inv_obj._refund_cleanup_lines(cr, uid, invoice_lines)187 invoice_lines = inv_obj._refund_cleanup_lines(cr, uid, invoice_lines)
188 tax_lines = inv_tax_obj.read(cr, uid, invoice['tax_line'], context=context)188 tax_lines = inv_tax_obj.browse(cr, uid, invoice['tax_line'], context=context)
189 tax_lines = inv_obj._refund_cleanup_lines(cr, uid, tax_lines)189 tax_lines = inv_obj._refund_cleanup_lines(cr, uid, tax_lines)
190 invoice.update({190 invoice.update({
191 'type': inv.type,191 'type': inv.type,

Subscribers

People subscribed via source and target branches

to all changes: