odoo/odoo#191849

Created by fw-bot
Merged at faed1fd015a66a5213d1f95e8b0c15dd430094cf

Statuses:

label
odoo-dev:saas-17.2-17.0-l10n_fr-same_xmlid_account_group-gawa-PST--fw
head
6d8f6a84c8433ce0568b4d06c79bc268cd21e13a
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