Tuesday, December 31, 2024
2 changes · saas-18.1
Resolved issues and error corrections
The employee payroll page now hides the Belgian Payroll section unless the active company is based in Belgium. This prevents irrelevant Belgian payroll options from appearing for employees in other countries and keeps the form clearer for users.
Original PR description
in hr.employee form inside the payroll page the group `Belgian Payroll` was always visible if the `l10n_be_hr_payroll` is installed regradless the active company - add `invisible="company_country_code != 'BE'"` to the group to be only visible when `BE` company is selected Task: 4434600
Fixed an issue where opening contracts outside Luxembourg could fail when the Luxembourg payroll module was installed. The change ensures Luxembourg-specific meal voucher settings are only required when relevant, preventing unnecessary errors for other countries.
Original PR description
When you try to open a non-LU contract while the `l10n_lu_hr_payroll` is installed it raise error as `l10n_lu_meal_voucher_max_value` parameter is not presented in the rule parameter - add `raise_if_not_found=self.country_code == 'LU'` to only raise the error when the contract is LU - add the `or 0` to give a value as it used in the function and None whould raise an error Task: 4420371