add missing decorators

This commit is contained in:
Laetitia Gangloff
2016-03-24 15:54:27 +01:00
committed by Thomas Binsfeld
parent 4590da7c01
commit 9c17907108

View File

@@ -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