Files
odoo_source/addons/mail/models
Thibault Delavallée 2075dd0848 [FIX] mail: fix language fetch when sending notification
When using the composer in batch and comment mode, the first record of the
batch was used to find the language for notifications instead of the one
linked to the message.

Previously to odoo/odoo#99482 batch comment mode was not supported and there
were always only a singleton as record ids. Now that it is supported we have
to be more careful when dealing with IDs.

To solve this issue we check the message res_id which effectively contains
the correct record ID.

Oversight of odoo/odoo#99482

Task-3035101 (Mail: Support batch-posting from composer)

closes odoo/odoo#113015

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2023-02-17 22:02:35 +01:00
..
…
…