summaryrefslogtreecommitdiff
path: root/addons/warning/warning.py
diff options
context:
space:
mode:
authorRavi Gohil (OpenERP) <rgo@tinyerp.com>2013-06-12 16:51:46 +0530
committerRavi Gohil (OpenERP) <rgo@tinyerp.com>2013-06-12 16:51:46 +0530
commitb49fe3aa34b5fb1e62b657c71d2c62b08822cd31 (patch)
tree85945cc2572eb71157f156bf88cdac8df6ccd6d3 /addons/warning/warning.py
parente532701d28d63fba37df3149e89804630f14f999 (diff)
[FIX] warning: Impossible to set UoM if product is not selected in purchase order line. (Maintenance Case: 593702)
bzr revid: rgo@tinyerp.com-20130612112146-fvu2jeyvkfqp56gj
Diffstat (limited to 'addons/warning/warning.py')
-rw-r--r--addons/warning/warning.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/warning/warning.py b/addons/warning/warning.py
index e045e6a28a0..a3627e0021d 100644
--- a/addons/warning/warning.py
+++ b/addons/warning/warning.py
@@ -288,7 +288,7 @@ class purchase_order_line(osv.osv):
name=False, price_unit=False, notes=False, context=None):
warning = {}
if not product:
- return {'value': {'price_unit': 0.0, 'name':'','notes':'', 'product_uom' : False}, 'domain':{'product_uom':[]}}
+ return {'value': {'price_unit': price_unit or 0.0, 'name': name or '', 'notes': notes or '', 'product_uom' : uom or False}, 'domain':{'product_uom':[]}}
product_obj = self.pool.get('product.product')
product_info = product_obj.browse(cr, uid, product)
title = False