Wednesday, January 28, 2026
2 changes · 19.0
Code cleanup and technical improvements
This update reorganizes and strengthens automated tests for Argentina localization modules, especially around accounting-related scenarios. It helps reduce the risk of regressions in Argentine invoicing, POS, stock, eCommerce, and withholding flows without changing customer-facing functionality.
Original PR description
- Implemented a working `assert_json` method on `AccountTestInvoicingCommon`, that also supports the ignore_schema system and quick save using the `SAVE_JSON` test tag. - Refactors the whole test suite of `l10n_ar*` modules to use the new accounting test helpers properly. task-4891206 Forward-Port-Of: odoo/odoo#244822 Forward-Port-Of: odoo/odoo#242309
This update streamlines the testing process for the Ar-EDI module by automatically verifying data against JSON files. Previously, tests required external modes, but now they run more reliably and easily adaptable with simple test tag adjustments. This improves the overall stability and maintainability of the Ar-EDI module.
Original PR description
This commit refactors the whole `l10n_ar_edi` test suite to use the new helpers, and made it possible for the test to (finally) be run without external mode. Now, when running these new tests, the test framework will by default assert the request data with their associated JSON file. When a change is made, new overwrites for the test files can be easily changed by just adding the `SAVE_JSON` test tag on the command to run the tests. task-4891206 Forward-Port-Of: odoo/enterprise#104886 Forward-Port-Of: odoo/enterprise#103370