Fix on_change uos to return the id not the browse record

bzr revid: ced-886ab010791e58f71009f1a0c09c5c808f8fe3d1
This commit is contained in:
ced 2007-12-11 08:14:12 +00:00
parent e73677d374
commit f8ab2b4b71
1 changed files with 1 additions and 1 deletions

View File

@ -696,7 +696,7 @@ class sale_order_line(osv.osv):
product = product_obj.browse(cr, uid, product_id)
value = {
'product_uom' : product.uom_id,
'product_uom' : product.uom_id.id,
}
# FIXME must depend on uos/uom of the product and not only of the coeff.
try: