-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] portal: fix recipients computation override
Portal defines the 'portal.mixin' that overrides a method from 'mail.thread'. However no explicit inheritance is given between those two mixin. Some Odoo models notably inherit from 'portal.mixin' and not from 'mail.thread'. It makes no sense to override a method the model does not explicitly inherit. In this commit we move the override on 'mail.thread' by checking the model also inherits from 'portal.mixin' before doing portal-specific computation. This fixes tests introduced previously. Task-3175768 (Mail: check inheritances / overrides) closes odoo#112095 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
- Loading branch information
1 parent
784c37b
commit cc26cea
Showing
3 changed files
with
50 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters