Monday, December 18, 2023
1 change · master
Code cleanup and technical improvements
This change reorganizes country-specific localization modules so each country has one shared demo data package and separate accounting-specific modules. This reduces duplicate demo companies when multiple localization packages are installed, making testing and demonstrations cleaner and more consistent.
Original PR description
Auto Install ============ By having only one root module per country, containing minimal data and model changes, we can use that module to auto-install all localization for other modules. For…
Auto Install ============ By having only one root module per country, containing minimal data and model changes, we can use that module to auto-install all localization for other modules. For instance, installing `l10n_xx`, `account` and `hr_payroll` will automatically install all the bridges required for the country `xx`. Demo Data ========= Up until now, we did not have any common demo data package for localization. This is an issue for localization having both accounting and hr packages, because these do not depend on each others. It means that to have complete demo data individually, they need to define demo company in both cases. This leads to duplication in demo companies for a single country when both packages are installed, which is not ideal for testing as it also means that demo data is split between multiple companies. This commit will rename things a bit to bring a common demo data package for multiple localization. `l10n_xx` as it is known today becomes `l10n_xx_account` (as it was all along an invoicing module). `l10n_xx` is instead a new module containing the demo company data. task-3555251 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr