Fix typo in on_change_with_unit_digits (unit -> uom)
This commit is contained in:
1 parent
bae6d14857
commit
f2ac9930ed
1 file changed
+2
-2
@@ -182,8 +182,8 @@ class Move(OSV):
|
||||
def on_change_with_unit_digits(self, cursor, user, ids, vals,
|
||||
context=None):
|
||||
uom_obj = self.pool.get('product.uom')
|
||||
if vals.get('unit'):
|
||||
uom = uom_obj.browse(cursor, user, vals['unit'],
|
||||
if vals.get('uom'):
|
||||
uom = uom_obj.browse(cursor, user, vals['uom'],
|
||||
context=context)
|
||||
return uom.digits
|
||||
return 2
|
||||
|
||||
Reference in new issue
Block a user