Friday, October 31, 2025
1 change · saas-18.2
Enhancements to existing features
New shared helper methods were added for accounting-related tests, making it easier for developers to create invoices, sale orders, reversals, down payments, and module-specific skips in a consistent way. This is an internal improvement that supports faster, more reliable accounting test development without changing end-user behavior.
Original PR description
This commit adds bunch of helper methods on AccountTestInvoicingCommon to make it easier to do generic accounting test actions, such as: - creating invoice - creating sale order - reversing invoice - skipping test if module isn't installed - creating down payment invoice ... and many more. We're aware that there are thousands of different helpers for creating invoice out there in different localizations. This commit serves as the first necessary step to create one standard that can be extended across all other test helpers. This is a simplified version of the merged commit in master. We are not refactoring/rewriting any other test to use these new helpers. Our goal is just to make it available for everyone to start using this helper on their accounting-related tests. task-4891206 Forward-Port-Of: odoo/odoo#233724