projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82adba4
)
[FIX] website_quote: onchange return nothing if product is False
author
Denis Ledoux
<dle@odoo.com>
Thu, 4 Sep 2014 15:55:48 +0000
(17:55 +0200)
committer
Denis Ledoux
<dle@odoo.com>
Thu, 4 Sep 2014 15:55:48 +0000
(17:55 +0200)
addons/website_quote/models/order.py
patch
|
blob
|
history
diff --git
a/addons/website_quote/models/order.py
b/addons/website_quote/models/order.py
index
3754eed
..
9362476
100644
(file)
--- 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,