From b3f5a98e590e5fbe4a84fc79b8fc791f07b55117 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: add @api.model_create_multi --- 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: