Saturday, January 10, 2026
2 changes · 19.0
Resolved issues and error corrections
This update resolves an issue where changing a Commission Plan's dates would delete all associated targets and forecasts. Now, the system correctly checks if new targets fall within the plan's updated period and only removes outdated targets, ensuring accurate reporting and planning.
Original PR description
Before this commit, changing the Effective Period of a Commission Plan was erasing all the targets and forecast linked to that plan. After this commit, this is no longer the case as we compare if the new targets are within the range and delete the out-of-period targets. task-5469817
This update fixes an issue with hourly wage calculations and improves the accuracy of monthly wage calculations for employees in Russia. The changes ensure that payroll data is derived from accurate resource calendars, eliminating previous static assumptions and preventing unexpected validation errors.
Original PR description
- All percentage fields now use self.env.remove_to_compute to break circular dependencies, so UIs no longer need the ad-hoc skip_percentage_calc context. - _l10n_in_get_montly_wage now derives monthly hours from the version’s or its company’s resource calendar via hours/week previously it was static to 22 days. - fix raises validation when opening offer after changing working schedule it raise validation error which isn't expected behaviour. task-5421228