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

Proposed by marta(pexego) on 2013-12-24
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/ (+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 on 2013-12-24
Pedro Manuel Baeza 2013-12-24 Approve on 2013-12-24
Review via email:

Description of the change

Fix onchange_partner_id signature

To post a comment you must log in.
Pedro Manuel Baeza (pedro.baeza) wrote :

Thanks for the fix, Marta!!

review: Approve
Omar (Pexego) (omar7r) wrote :


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/'
2--- sale_payment/ 2013-08-18 21:18:02 +0000
3+++ sale_payment/ 2013-12-24 13:42:23 +0000
4@@ -31,9 +31,9 @@
5 'partner_bank': fields.many2one('','Bank Account', select=True, help='The bank account to pay to or to be paid from. It will be transferred to the invoice'),
6 }
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)