Wednesday, September 11, 2024
1 change · saas-17.1
Resolved issues and error corrections
Creating a branch for a company using the German SKR04 chart of accounts now reuses the parent company’s accounting chart instead of selecting the wrong default. This prevents setup failures and ensures branch accounting data is created consistently with the parent company.
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