From cbcabfb043b839654eb91cf959f6da91f42955d4 Mon Sep 17 00:00:00 2001 From: Hector Vior Date: Thu, 6 Aug 2026 16:05:36 +0200 Subject: [PATCH] [FIX] account_move_multi_company: call super().post() with invoice as keyword super().post(invoice) passes it positionally, which only works by coincidence when every class in account.move's MRO happens to also declare invoice as a plain positional-or-keyword parameter. Passing it by name is the safer, unambiguous way to forward an optional argument through an inheritance chain this deep. --- account_move_multi_company/models/account_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_move_multi_company/models/account_move.py b/account_move_multi_company/models/account_move.py index 22d9540403d..2d2a98dfa2c 100644 --- a/account_move_multi_company/models/account_move.py +++ b/account_move_multi_company/models/account_move.py @@ -45,7 +45,7 @@ def prepare_company_move_line_values( @api.multi def post(self, invoice=False): - res = super().post(invoice) + res = super().post(invoice=invoice) dedicated_companies_vals = {} journal_entry_transfer = self.env['account.move'] transfer_lines = []