savoirfairelinux-openerp team mailing list archive
-
savoirfairelinux-openerp team
-
Mailing list archive
-
Message #00133
lp:~savoirfairelinux-openerp/openerp-icm/sale_commission-bug-1188844 into lp:openerp-icm
Joao Alfredo Gama Batista has proposed merging lp:~savoirfairelinux-openerp/openerp-icm/sale_commission-bug-1188844 into lp:openerp-icm.
Requested reviews:
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903)
Related bugs:
Bug #1188844 in openerp-icm: "Error while creating a quotation"
https://bugs.launchpad.net/openerp-icm/+bug/1188844
For more details, see:
https://code.launchpad.net/~savoirfairelinux-openerp/openerp-icm/sale_commission-bug-1188844/+merge/168205
Added the context into the onchange_partner_id method signature.
--
https://code.launchpad.net/~savoirfairelinux-openerp/openerp-icm/sale_commission-bug-1188844/+merge/168205
Your team Savoir-faire Linux' OpenERP is subscribed to branch lp:~savoirfairelinux-openerp/openerp-icm/sale_commission-bug-1188844.
=== modified file 'sale_commission/sale_order.py'
--- sale_commission/sale_order.py 2012-07-13 10:51:04 +0000
+++ sale_commission/sale_order.py 2013-06-07 21:47:44 +0000
@@ -101,10 +101,10 @@
self.pool.get('sale.order.agent').unlink(cr, uid, sale_order_agent[1])
return super(sale_order, self).write(cr, uid, ids, values, context=context)
- def onchange_partner_id(self, cr, uid, ids, part):
+ def onchange_partner_id(self, cr, uid, ids, part, context=None):
"""heredamos el evento de cambio del campo partner_id para actualizar el campo agent_id"""
sale_agent_ids=[]
- res = super(sale_order, self).onchange_partner_id(cr, uid, ids, part)
+ res = super(sale_order, self).onchange_partner_id(cr, uid, ids, part, context=context)
if res.get('value', False) and part:
sale_order_agent = self.pool.get('sale.order.agent')
if ids:
Follow ups