Thursday, September 24, 2026
2 changes · saas-19.2
Enhancements to existing features
The Argentine localization tests now create sample invoices more directly, avoiding unnecessary repeated processing during test setup. This reduces test execution time and database activity while keeping the report results unchanged.
Original PR description
The use_current_date=False branch of _create_test_invoices_like_demo built 18 invoices through Form, which reruns the whole move onchange for every field of every line. It was two thirds of the l10n_ar_reports class setup. Create them with _create_invoice from the fields the Form set, like the other branch does. The accounting date is now the invoice date on every invoice, the report output is unchanged. With the l10n_ar_reports counterpart: | l10n_ar_reports, runbot 18.0 L10n | before (3 builds) | after | |------------------------------------|-------------------|-------| | TestArReports setUpClass | 78-103s | 31s | | module test time | 80-106s | 33s | | queries | 45.4k | 28.4k | Forward-Port-Of: odoo/odoo#290123 Forward-Port-Of: odoo/odoo#290111
The Argentina accounting reports tests now create sample vendor bills more efficiently, reducing automated test time while keeping report results unchanged. This helps developers validate changes faster with no expected impact on customers or day-to-day accounting workflows.
Original PR description
Same as the l10n_ar fixture: the 10 demo vendor bills were built through Form, rerunning the whole move onchange for every field of every line. Create them with _create_invoice from the fields the Form set. TestSicoreReport subclassed TestArReports only for the report helpers, so it rebuilt that whole VAT book fixture without reading it: inherit the withholding and account report bases directly instead. The accounting date is now the invoice date on every bill, the report output is unchanged. With the l10n_ar counterpart: | l10n_ar_reports | before | after | |---|---|---| | TestArReports setUpClass, runbot | 78-103s | 31s | | module test time, runbot | 80-106s | 33s | | TestSicoreReport setUpClass, local | 10.7s | 6.1s | Runbot: 18.0 L10n, 3 base builds. Local: saas-19.2, Form fix applied. Forward-Port-Of: odoo/enterprise#132713 Forward-Port-Of: odoo/enterprise#132697