From 1448024146d80f697ee04506812a6552a28b9d79 Mon Sep 17 00:00:00 2001 From: Celina Devigili Date: Wed, 16 Oct 2024 14:17:31 -0300 Subject: [PATCH] [16.0][FIX] stock_secondary_unit: use @api.model_create_multi in create method --- stock_secondary_unit/models/stock_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock_secondary_unit/models/stock_move.py b/stock_secondary_unit/models/stock_move.py index 22cd108aaaae..9cd60e69c741 100644 --- a/stock_secondary_unit/models/stock_move.py +++ b/stock_secondary_unit/models/stock_move.py @@ -50,7 +50,7 @@ class StockMoveLine(models.Model): store=True, readonly=False, compute="_compute_qty_done", precompute=True ) - @api.model + @api.model_create_multi def create(self, vals): move = self.env["stock.move"].browse(vals.get("move_id", False)) if move.secondary_uom_id: