Daily updates from Odoo
Thursday, May 31, 2018
2 changes · master
Resolved issues and error corrections
Resource calendars now use explicit time zones for employees and resources, reducing scheduling mistakes when teams work across regions. The update also improves calendar performance and aligns related HR, payroll, manufacturing, project, and timesheet absence features with the revised scheduling behavior.
Original PR description
Fix timezone issues in resource calendar: - improve tests on resource calendar and resource mixin; - add a required timezone field on models 'resource.calendar' and 'resource.resource' to disambiguate attendances; - improve API of 'resource.calendar' and 'resource.mixin' to prevent other modules from using its implementation methods; - refactor implementation of 'resource.calendar' to make it more efficient.
This fixes monetary values in templates so they use the context of the specific record, rather than the broader page rendering context. It helps ensure amounts are formatted with the correct company and date information, reducing incorrect currency displays in generated documents or views.
Original PR description
Before this fix, the _convert method use the context of the qweb rendering instead of use the record context. 'date' and 'company' are automatically set as option for the field. The template who use t-esc with the widget monetary must define the options. The bug is introduce by https://github.com/odoo/odoo/commit/7a282c99655d4f154ac1808fcb8a70339dc70930 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