Daily updates from Odoo
Navigate
Branch
Friday, February 23, 2018
4 changes
Enhancements to existing features
When a rated item such as a project task is moved to a different parent record, its rating information now updates to reflect the new parent. This keeps rating statistics accurate across Project, Helpdesk, and Live Chat, and avoids errors when multiple rated records are renamed together.
Original PR description
Task: https://www.odoo.com/web#id=48199&view_type=form&model=project.task&menu_id=5200
The website publishing control is now more visible when content is unpublished. This helps users recognize that a page or item still needs to be published, reducing confusion and missed publishing steps.
Original PR description
Before this commit, people would have a hard time figuring about the publish button. Some would get stuck with unpublished content. Now, this button will be more visible for unpublished content, hopefully people will notice it at first look. task-44005 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
Resolved issues and error corrections
This fixes an error that could occur when saving accounting settings after choosing a chart of accounts. The required account code length is now set correctly, helping users complete setup without interruption.
Original PR description
Description of the issue/feature this PR addresses: Issue: https://www.odoo.com/web?#id=800343&view_type=form&model=project.issue&action=963&active_id=681&menu_id=4720 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
This update ensures ratings follow records when they move to a different parent, such as a task being moved to another project. As a result, rating statistics and parent document names stay accurate across project, helpdesk, and live chat workflows.
Original PR description
Purpose ======= For objects inherting from rating.mixin, when their parent model change (e.i.: task from a project to another), the "Parent document name" does not change. The rating is still considered belonging to the old parent object (rating stat of project is not correct). Specification ============= Change the rating API. In rating mixin, instead of having 2 methods returning parent id and parent model (rating_get_parent_id and rating_get_parent_model_name), we should have one method returning the 'parent relation field' (inevitably m2o field). Then we can deduce its parent_res_id/parent_res_model, and check this parent field is in values of write to trigger the recompute of parent_res_name. Also, add "ondelete=cascade" on parent_res_model_id Impacted modules: project, rating, helpdesk, livechat