[FIX] event_sale: reset event-related fields on SO line when switching products
This commit is contained in:
parent
117a26babe
commit
783b9e1c89
|
@ -64,7 +64,11 @@ class sale_order_line(osv.osv):
|
||||||
if product:
|
if product:
|
||||||
product_res = self.pool.get('product.product').browse(cr, uid, product, context=context)
|
product_res = self.pool.get('product.product').browse(cr, uid, product, context=context)
|
||||||
if product_res.event_ok:
|
if product_res.event_ok:
|
||||||
res['value'].update({'event_type_id': product_res.event_type_id.id, 'event_ok':product_res.event_ok})
|
res['value'].update(event_type_id=product_res.event_type_id.id,
|
||||||
|
event_ok=product_res.event_ok)
|
||||||
|
else:
|
||||||
|
res['value'].update(event_type_id=False,
|
||||||
|
event_ok=False)
|
||||||
return res
|
return res
|
||||||
|
|
||||||
def button_confirm(self, cr, uid, ids, context=None):
|
def button_confirm(self, cr, uid, ids, context=None):
|
||||||
|
|
Loading…
Reference in New Issue