Thursday, September 12, 2024
1 change · saas-17.2
Resolved issues and error corrections
Branches created under a company using the German SKR04 chart of accounts now inherit the correct chart from the parent company. This prevents setup errors caused by selecting the wrong German accounting template and helps companies create branches reliably.
Original PR description
Issue when adding a branch for a company with a parent using "German chart of accounts SKR04" localization. Steps to reproduce: - Install the l10n_de and account modules. - Create a company with the localization “German chart of accounts SKR04.” - For this company, attempt to create a branch. Explanation of the issue: The _guess_chart_template function incorrectly returns the SKR03 chart template instead of SKR04 for the new branch. As a result, the _pre_reload_data function, which creates the missing xmlids, is not triggered. Solution: To resolve this issue, I prioritize using the chart template from the parent company if available, instead of relying on the _guess_chart_template function. opw-4141944