Fix get_unit_digits to return always a value
This commit is contained in:
1 parent
e8d4912599
commit
e2db0508ba
1 file changed
+2
@@ -681,6 +681,8 @@ class PurchaseLine(OSV):
|
||||
for line in self.browse(cursor, user, ids, context=context):
|
||||
if line.unit:
|
||||
res[line.id] = line.unit.digits
|
||||
else:
|
||||
res[line.id] = 2
|
||||
return res
|
||||
|
||||
def on_change_product(self, cursor, user, ids, vals, context=None):
|
||||
|
||||
Reference in new issue
Block a user