Wednesday, November 27, 2024
2 changes · master
Resolved issues and error corrections
Amazon order processing tests now fail clearly when an order-processing error occurs instead of hiding it through an automatic rollback. Test data was also corrected so invalid Amazon order identifiers are caught, improving confidence that Amazon sales workflows behave as expected.
Original PR description
While testing, if we get an error while trying to process an order, `rollback` is called, we prevent this by raising the exception. Moreover, in the test data, the AmazonOrderId was a dict instead of a string, that error was silently ignored (test passed, but shouldn't).
This update adjusts an internal timesheet test after company-based employee access rules were restored. It helps ensure timesheet functionality continues to be validated correctly in multi-company setups, with no direct change expected for everyday users.
Original PR description
This reverts commit 73223682daaaa6d2ed2f062705917a59716209b4 since the multi-company rule in `hr.employee` and `hr.employee.public` models has been re-introduced.