Skip to content
Snippets Groups Projects
Commit 44bf56c7 authored by Victor Tabuenca Calvo's avatar Victor Tabuenca Calvo Committed by Martin Trigaux
Browse files

[FIX] event_sale: do not crash when empty field product in ticket types lines

parent 1ddb3439
Branches
Tags
No related merge requests found
......@@ -224,6 +224,8 @@ class event_ticket(osv.osv):
]
def onchange_product_id(self, cr, uid, ids, product_id=False, context=None):
if not product_id:
return {'value': {}}
return {'value': {'price': self.pool.get("product.product").browse(cr, uid, product_id).list_price or 0}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment