Tuesday, October 28, 2025
1 change · master
Code cleanup and technical improvements
This update streamlines how accounting-related automated tests create common business records such as invoices, sales orders, reversals, and down payments. It helps teams write and maintain tests more consistently across accounting and localization modules, reducing future maintenance effort without changing customer-facing 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. Some tests have been rewritten to use these new helpers, but due to the sheer amount of tests out there, we're still far from converting every old tests to use this new helpers. However, this should get our feet in the door, allowing us to start writing test the correct way on new tests after this PR, and improve the DX of (accounting) test writing. :) task-4891206