From e66ef451c9600dab732279240150a49da0a64612 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Fri, 3 Nov 2017 08:57:27 +0100 Subject: [PATCH] [FIX] stock: incorrect decorator --- addons/stock/models/stock_inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/models/stock_inventory.py b/addons/stock/models/stock_inventory.py index 8e3452f73c2d0..38c23b33b5703 100644 --- a/addons/stock/models/stock_inventory.py +++ b/addons/stock/models/stock_inventory.py @@ -364,7 +364,7 @@ def onchange_quantity_context(self): self._compute_theoretical_qty() self.product_qty = self.theoretical_qty - @api.model + @api.multi def write(self, values): values.pop('product_name', False) res = super(InventoryLine, self).write(values)