From 467e490e5d695817f98b709c06763ff7a372729b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Mon, 4 Dec 2017 17:54:40 +0100 Subject: [PATCH] [FIX] project: reorder inherit to be able to pass through portal before mail thread Purpose is to enable override of mail.thread methods in portal mixin. An example is the _notification_recipients method defined in mail.thread and customized in portal.mixin. --- addons/project/models/project.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/project/models/project.py b/addons/project/models/project.py index 4b824ded373..319f50724b6 100644 --- a/addons/project/models/project.py +++ b/addons/project/models/project.py @@ -68,7 +68,7 @@ class ProjectTaskType(models.Model): class Project(models.Model): _name = "project.project" _description = "Project" - _inherit = ['mail.alias.mixin', 'mail.thread', 'portal.mixin'] + _inherit = ['portal.mixin', 'mail.alias.mixin', 'mail.thread'] _inherits = {'account.analytic.account': "analytic_account_id"} _order = "sequence, name, id" _period_number = 5 @@ -444,7 +444,7 @@ class Task(models.Model): _name = "project.task" _description = "Task" _date_name = "date_start" - _inherit = ['mail.thread', 'mail.activity.mixin', 'portal.mixin', 'rating.mixin'] + _inherit = ['portal.mixin', 'mail.thread', 'mail.activity.mixin', 'rating.mixin'] _mail_post_access = 'read' _order = "priority desc, sequence, date_start, name, id"