From ec6635defe5c1544ea492b7288aaa9f8953ebf06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Wed, 18 Jan 2023 08:01:57 +0000 Subject: [PATCH] [FIX] account: fix composer res_ids field usage A missing 'res_id' is still used where it should be 'res_ids'. Followup of odoo/odoo#99482 Part-of: odoo/odoo#110293 --- addons/account/wizard/account_invoice_send.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/wizard/account_invoice_send.py b/addons/account/wizard/account_invoice_send.py index 2b26e609e3a..5668c4ed0fa 100644 --- a/addons/account/wizard/account_invoice_send.py +++ b/addons/account/wizard/account_invoice_send.py @@ -140,7 +140,7 @@ class AccountInvoiceSend(models.TransientModel): # basically self.body (which could be manually edited) extracts self.template_id, # which is then not translated for each customer. if self.composition_mode == 'mass_mail' and self.template_id: - active_ids = self.env.context.get('active_ids', self.res_id) + active_ids = self.env.context.get('active_ids', self.res_ids) active_records = self.env[self.model].browse(active_ids) langs = active_records.mapped('partner_id.lang') default_lang = get_lang(self.env)