From 75ec7ab257d93a150911fbb422f7e8aa306a4905 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Mon, 4 Dec 2017 17:35:25 +0100 Subject: [PATCH] [FIX] sale: 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/sale/models/sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale/models/sale.py b/addons/sale/models/sale.py index a646f5e0ed3..271bea23781 100644 --- a/addons/sale/models/sale.py +++ b/addons/sale/models/sale.py @@ -19,7 +19,7 @@ from odoo.addons import decimal_precision as dp class SaleOrder(models.Model): _name = "sale.order" - _inherit = ['mail.thread', 'mail.activity.mixin', 'portal.mixin'] + _inherit = ['portal.mixin', 'mail.thread', 'mail.activity.mixin'] _description = "Quotation" _order = 'date_order desc, id desc'