Skip to content

Commit

Permalink
[16.0][FIX] stock_secondary_unit: use @api.model_create_multi in crea…
Browse files Browse the repository at this point in the history
…te method
  • Loading branch information
ced-adhoc committed Oct 16, 2024
1 parent d311024 commit 1448024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stock_secondary_unit/models/stock_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1448024

Please sign in to comment.