Monday, October 3, 2022
2 changes · master
Resolved issues and error corrections
Loyalty programs that are not tied to a specific company now use the current company when calculating currency conversion amounts. This prevents errors in multi-company setups and helps discounts apply correctly for shared loyalty programs.
Original PR description
In the present when in a multi-company environment it is possible to create loyalty programs without a company associated to it. This cause a problem when computing conversion rates as conversion rates are associated to a company. After this commit if no company is setted on the loyalty program then when computing the amout to deduce on the loyalty program we fallback to the env company (this is the same way the company is initially deduced on the loyalty program). Task - 3001177 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#101631
The HR user creation flow now defaults the employee creation option to off and hides it when a user is created from an employee record. This reduces confusion and helps avoid accidentally creating duplicate employee records.
Original PR description
Set the default value for create_employee to False. When coming from employee form, hide the create_employee field. task - 2990426