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
1=== modified file 'account/wizard/account_invoice_refund.py'
2--- account/wizard/account_invoice_refund.py 2012-12-18 17:42:25 +0000
3+++ account/wizard/account_invoice_refund.py 2013-01-07 13:39:25 +0000
4@@ -183,9 +183,9 @@
5 'journal_id', 'period_id'], context=context)
6 invoice = invoice[0]
7 del invoice['id']
8- invoice_lines = inv_line_obj.read(cr, uid, invoice['invoice_line'], context=context)
9+ invoice_lines = inv_line_obj.browse(cr, uid, invoice['invoice_line'], context=context)
10 invoice_lines = inv_obj._refund_cleanup_lines(cr, uid, invoice_lines)
11- tax_lines = inv_tax_obj.read(cr, uid, invoice['tax_line'], context=context)
12+ tax_lines = inv_tax_obj.browse(cr, uid, invoice['tax_line'], context=context)
13 tax_lines = inv_obj._refund_cleanup_lines(cr, uid, tax_lines)
14 invoice.update({
15 'type': inv.type,

Subscribers

People subscribed via source and target branches

to all changes: