Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] resource_booking: Don't fail on archived resource
Steps to reproduce the problem: - Create an employee. - Create a resource booking combination with such employee. - Create or modify a resource booking type including the previous combination. - Create a resource booking using that type and combination, and schedule it. - Archive the employee. - Do any change on the resource booking type. Current behavior: Error saying: "Cannot schedule these bookings because no resources are selected for them:..." Expected behavior: No error The problem is that we do the checks without taking into account the archived resource, and thus, it fails. Using active_test=False makes them to appear for the check.
- Loading branch information