From 2d9ddce327eb818dd6631b1bf1efb50f9be22540 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Thu, 4 Sep 2014 17:55:48 +0200 Subject: [PATCH] [FIX] website_quote: onchange return nothing if product is False --- addons/website_quote/models/order.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/website_quote/models/order.py b/addons/website_quote/models/order.py index 3754eed90ff..9362476e998 100644 --- a/addons/website_quote/models/order.py +++ b/addons/website_quote/models/order.py @@ -272,6 +272,8 @@ class sale_order_option(osv.osv): } def on_change_product_id(self, cr, uid, ids, product, context=None): vals = {} + if not product: + return vals product_obj = self.pool.get('product.product').browse(cr, uid, product, context=context) vals.update({ 'price_unit': product_obj.list_price,