Merge lp:~vauxoo/openerp-mexico-localization/7.0-invoice_discount_list_write_dev_luis into lp:openerp-mexico-localization/7.0

Proposed by Luis Torres - http://www.vauxoo.com
Status: Merged
Merged at revision: 258
Proposed branch: lp:~vauxoo/openerp-mexico-localization/7.0-invoice_discount_list_write_dev_luis
Merge into: lp:openerp-mexico-localization/7.0
Diff against target: 12 lines (+1/-1)
1 file modified
l10n_mx_invoice_discount/invoice.py (+1/-1)
To merge this branch: bzr merge lp:~vauxoo/openerp-mexico-localization/7.0-invoice_discount_list_write_dev_luis
Reviewer Review Type Date Requested Status
Moisés López - http://www.vauxoo.com Needs Information
Rodolfo Lopez Pending
Review via email: mp+179820@code.launchpad.net

Description of the change

Se cambio en el write de actualizar impuestos el id por una lista.

To post a comment you must log in.
Revision history for this message
Moisés López - http://www.vauxoo.com (moylop260) wrote :

Luis Torres,
Disculpa, puedes verificar si en algún otro lado hay un write, unlink o delete con id integer, para cambiar a ids lista.

review: Needs Information

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'l10n_mx_invoice_discount/invoice.py'
2--- l10n_mx_invoice_discount/invoice.py 2013-05-15 17:27:21 +0000
3+++ l10n_mx_invoice_discount/invoice.py 2013-08-12 21:59:41 +0000
4@@ -102,7 +102,7 @@
5 'discount': invoice.global_discount_percent,
6 }
7 sub_tot += line.price_unit * line.quantity
8- invoice_line_obj.write(cr, uid, line.id, discount_dic)
9+ invoice_line_obj.write(cr, uid, [line.id], discount_dic)
10
11 discount = invoice.global_discount_percent and sub_tot * (
12 invoice.global_discount_percent and invoice.\