Wednesday, March 4, 2026
1 change · 19.0
Enhancements to existing features
This update speeds up testing for the Stock Barcode module by optimizing the initial setup process. The previous setup, which created a company, was a significant bottleneck. Moving this creation to a setup class will reduce test execution times, improving developer efficiency.
Original PR description
TestBarcodeClientAction [setup is quite slow](https://runbot229.odoo.com/runbot/static/build/102958171-master/tests/profile/profile_2.html#localProfilePath=1), especially because it creates a company. In addition in all classes extending this one, we spend at least 6 minutes on this line. (when testing sale_timesheet -> !stock_barcode_mrp_subcontracting) This commit proposes to move at least the company creation in a setupclass. It would be great to move all the setup in the setupclass but the tests are failling when doing so and could be achieved by a member of the stock_barcode owner team. Tests based on this setup should be a few minutes faster with this change.