odoo/odoo#191854

Created by fw-bot
Merged at ac849b0d8793fa76c0c6dc5ade74e69bcdc659d4

Statuses:

label
odoo-dev:18.0-17.0-l10n_fr-same_xmlid_account_group-gawa-pbZb-fw
head
5a96dcb6641a64b9505c347a42f71b2fcd9a50e9
merged
9 months ago by Accounting, Ricardo Gomes Rodrigues (rigr)
odoo/odoo
17.0 #191827
saas-17.2 #191849
saas-17.4 #191853
18.0 #191854
saas-18.1 #191856
saas-18.2
saas-18.3
saas-18.4
19.0
master #191872

[FW][FIX] l10n_fr: xmlid of account is same as previous group template

A new account template got the id pcg_468. The issue is that it is the same as a previous group.
When you reload the CoA, it will try to access the data behind each xmlid of account template.
It will then access a group template thinking it's an account, resulting in a bad field access and a traceback.

Appeared due to a bad fw-port of 0ebf80b613d229ef5fb07ea97d406496f9df6254

(also fixed the typo in the code)


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #191827