Monday, May 25, 2026
1 change · saas-18.2
Resolved issues and error corrections
A manufacturing test setup now includes the required lot-tracking permission so it works consistently when demo data is not installed. This prevents false test failures and helps keep validation reliable across different environments.
Original PR description
Versions -------- - 18.0+ Steps ----- 1. Run `test_reservation_method_for_outgoing` without demo data. Issue ----- > AssertionError: 'lot_id' was not found in the view Cause ----- The `lot_id` field is only rendered if the current user has the `stock.group_production_lot` group. This is only default when demo data is installed. Solution -------- Add the group to the current user in `setUpClass`. runbot-243588 Forward-Port-Of: odoo/odoo#266052