Thursday, June 27, 2024
1 change · saas-17.1
Resolved issues and error corrections
This fixes an issue where loading demo data after installing inventory and accounting could fail with a runtime error. The change prevents automatic localization module installation during demo data loading, restoring the expected setup flow for test or demo environments.
Original PR description
Use case to reproduce: - Install stock and accounting without demo data - Load demo data Current behavior: RuntimeError: Module operations inside tests are not transactional and thus forbidden... It happens due to commit [1]. However, when loading the demo data the current thread has the attribute 'testing' set to True and prevent the installation of new modules. The solution would be to prevent the installation of l10n when loading demo data as before the patch [1] 0d4fac7fe0a356cbaf40f71587c78765ce50fc1e