Monday, January 19, 2026
2 changes · 18.0
Code cleanup and technical improvements
This update enhances the testing process for Odoo's Arabic accounting modules (l10n_ar). Specifically, a new testing method has been implemented to better validate invoice data, and the entire test suite has been updated for consistency and accuracy. This ensures the Arabic accounting features continue to function correctly and reliably.
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
This update streamlines the testing process for the l10n_ar_edi module by automatically verifying data against JSON files. This change allows tests to run without external modes and simplifies updates to test data through a simple tag, improving reliability and maintainability.
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