Thursday, November 19, 2020
2 changes · master
Resolved issues and error corrections
Warehouse settings related to manufacturing are now displayed when multi-step routes are enabled, even if multi-warehouse is not turned on. This helps businesses configure manufacturing replenishment and production steps without needing an unrelated warehouse option.
Original PR description
Fix an issue with the way we display or hide the warehouse settings and who doesn't work very well with the MRP settings. See commits for more informations. task-2376352
This change removes duplicate payroll-related work entry regeneration logic and ensures regenerated work entries respect the employee contract start and end dates. This helps prevent incorrect or duplicate payroll work entries, improving payroll data reliability.
Original PR description
Prior to this PR:
* The code that was created to backport the work entries
regeneration is present and create a duplicate with the
implementation made in hr_work_entry_contract.
* When the force param was set to True in _generate_work_entries no check
was made that the date_from and date_to were within the contract
date_start and date_stop interval.
After this PR:
* Only the implementation made in hr_work_entry_contract will
remain.
* The data_from and date_to params will be adapted according to the contract
date_start and date_stop if needed.