[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.
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user