Merge lp:~pexego/account-payment/sale_payment_fix_onchange_7_0 into lp:~account-payment-team/account-payment/7.0

Proposed by marta(pexego)
Status: Merged
Merged at revision: 109
Proposed branch: lp:~pexego/account-payment/sale_payment_fix_onchange_7_0
Merge into: lp:~account-payment-team/account-payment/7.0
Diff against target: 15 lines (+2/-2)
1 file modified
sale_payment/sale_payment.py (+2/-2)
To merge this branch: bzr merge lp:~pexego/account-payment/sale_payment_fix_onchange_7_0
Reviewer Review Type Date Requested Status
Omar (Pexego) tested Approve
Pedro Manuel Baeza Approve
Review via email: mp+200018@code.launchpad.net

Description of the change

Fix onchange_partner_id signature

To post a comment you must log in.
Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

Thanks for the fix, Marta!!

review: Approve
Revision history for this message
Omar (Pexego) (omar7r) wrote :

LGTM

review: Approve (tested)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'sale_payment/sale_payment.py'
2--- sale_payment/sale_payment.py 2013-08-18 21:18:02 +0000
3+++ sale_payment/sale_payment.py 2013-12-24 13:42:23 +0000
4@@ -31,9 +31,9 @@
5 'partner_bank': fields.many2one('res.partner.bank','Bank Account', select=True, help='The bank account to pay to or to be paid from. It will be transferred to the invoice'),
6 }
7
8- def onchange_partner_id(self, cr, uid, ids, part):
9+ def onchange_partner_id(self, cr, uid, ids, part, context=None):
10 """Copy partner data in the sale order, including payment_type and acc_number"""
11- result = super(sale_order, self).onchange_partner_id(cr, uid, ids, part)
12+ result = super(sale_order, self).onchange_partner_id(cr, uid, ids, part, context=context)
13 paytype_id = False
14 if part:
15 partner = self.pool.get('res.partner').browse(cr, uid, part)

Subscribers

People subscribed via source and target branches