Use id for vals instead of BrowseRecord
This commit is contained in:
1 parent
de6b9e1c44
commit
757bb1d0ae
1 file changed
+1
-1
+1
-1
@@ -804,7 +804,7 @@ class PurchaseLine(OSV):
|
||||
self.raise_user_error(cursor, 'supplier_location_required',
|
||||
context=context)
|
||||
vals['quantity'] = quantity
|
||||
vals['uom'] = line.unit
|
||||
vals['uom'] = line.unit.id
|
||||
vals['product'] = line.product.id
|
||||
vals['from_location'] = line.purchase.party.supplier_location.id
|
||||
vals['to_location'] = line.purchase.warehouse.input_location.id
|
||||
|
||||
Reference in new issue
Block a user