odoo/odoo#191856

Created by fw-bot
Merged at cc8ee650e9d953ed0d44bf9e0011db7efac26dde

Statuses:

label
odoo-dev:saas-18.1-17.0-l10n_fr-same_xmlid_account_group-gawa-4c-w-fw
head
0e1888d06e4e0f3665eb7627d85200d3d25993c7
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