From 9c17907108982b8a62e082b92ea8cc636dfee8ad Mon Sep 17 00:00:00 2001 From: Laetitia Gangloff Date: Thu, 24 Mar 2016 15:54:27 +0100 Subject: [PATCH] add missing decorators --- purchase_packaging/models/purchase.py | 1 + 1 file changed, 1 insertion(+) diff --git a/purchase_packaging/models/purchase.py b/purchase_packaging/models/purchase.py index ff7d14f2b..1910fcf3f 100644 --- a/purchase_packaging/models/purchase.py +++ b/purchase_packaging/models/purchase.py @@ -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