Daily updates from Odoo
Thursday, June 13, 2019
3 changes
Enhancements to existing features
Odoo now has a shared way to choose the correct base website address when creating external links. This helps emails, portal pages, sales documents, and website-related records point customers to the right website domain without custom handling in each area.
Original PR description
Before this commit, when we want to make an external url, we need to know if the record is related to a specific website or not, and choose base_url or website domain. Now each model have a fonction get_base_url (public to be callable from email template, ...) and website override this function to add the website domain if the record is website specific. Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Changing an employee's active contract calendar now updates the employee's work calendar as well, including when contracts are opened directly. If someone manually creates a mismatch, the system warns users so scheduling and payroll-related planning stay consistent.
Original PR description
Purpose ======= An employee and its current contract should have the same calendar. Currently, if the contract's calendar is changed, the employee's calendar is not changed. Specification ============= When manually changing a contract's calendar, it should also set the employee's calendar to the new calendar. If the employee's calendar is nonetheless manually changed, a warning should be displayed if there is a mismatch between both calendars. Task 1951347 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Payroll payslips now automatically use the default salary structure from the employee contract when none is selected, making payslip creation more consistent. Calendar synchronization logic was moved out of the enterprise payroll app to the community contract area, reducing duplication and aligning payroll behavior across editions.
Original PR description
Calendar sync moved to community here: https://github.com/odoo/odoo/pull/32295 Task id 1951347