mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
add missing decorators
This commit is contained in:
committed by
Thomas Binsfeld
parent
4590da7c01
commit
9c17907108
@@ -184,6 +184,7 @@ class PurchaseOrderLine(models.Model):
|
||||
return vals
|
||||
|
||||
@api.model
|
||||
@api.returns('self', lambda rec: rec.id)
|
||||
def create(self, vals):
|
||||
if 'product_qty' not in vals and 'product_purchase_qty' in vals:
|
||||
# compute product_qty to avoid inverse computation and reset to 1
|
||||
|
||||
Reference in New Issue
Block a user