Skip to content
Snippets Groups Projects
  • amoyaux's avatar
    b284285f
    [FIX] mrp: non-deterministic test/ behaviour · b284285f
    amoyaux authored
    test_03_test_serial_number_defaults creates 3 stock.production.lot
    but in a test case they have the same create_date.
    Moreover this test go through _assign_default_final_lot_id that do
    a search on lot ordered by create date. That's why the test is non-
    determinisitc since it could pick one of the 3 lots randomly
    
    This commit add the id in the order.
    b284285f
    History
    [FIX] mrp: non-deterministic test/ behaviour
    amoyaux authored
    test_03_test_serial_number_defaults creates 3 stock.production.lot
    but in a test case they have the same create_date.
    Moreover this test go through _assign_default_final_lot_id that do
    a search on lot ordered by create date. That's why the test is non-
    determinisitc since it could pick one of the 3 lots randomly
    
    This commit add the id in the order.