credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #05583
[Branch ~credativ/openobject-addons/6.1] Rev 7052: [FIX] Correct incompatability with delivery module when other modules extend the sale on change p...
------------------------------------------------------------
revno: 7052
committer: Craig Gowing (credativ) <craig.gowing@xxxxxxxxxxxxxx>
branch nick: addons
timestamp: Tue 2013-10-22 13:34:58 +0100
message:
[FIX] Correct incompatability with delivery module when other modules extend the sale on change parter callback.
modified:
delivery/sale.py
--
lp:~credativ/openobject-addons/6.1
https://code.launchpad.net/~credativ/openobject-addons/6.1
Your team credativ is subscribed to branch lp:~credativ/openobject-addons/6.1.
To unsubscribe from this branch go to https://code.launchpad.net/~credativ/openobject-addons/6.1/+edit-subscription
=== modified file 'delivery/sale.py'
--- delivery/sale.py 2011-12-21 15:16:39 +0000
+++ delivery/sale.py 2013-10-22 12:34:58 +0000
@@ -29,8 +29,8 @@
'id': fields.integer('ID', readonly=True,invisible=True),
}
- def onchange_partner_id(self, cr, uid, ids, part):
- result = super(sale_order, self).onchange_partner_id(cr, uid, ids, part)
+ def onchange_partner_id(self, cr, uid, ids, part, *args, **kwargs):
+ result = super(sale_order, self).onchange_partner_id(cr, uid, ids, part, *args, **kwargs)
if part:
dtype = self.pool.get('res.partner').browse(cr, uid, part).property_delivery_carrier.id
result['value']['carrier_id'] = dtype