summaryrefslogtreecommitdiff
path: root/addons/website/static/src/xml/website.contentMenu.xml
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2018-02-14 13:07:25 +0100
committerThibault Delavallée <tde@odoo.com>2018-05-07 10:58:54 +0200
commit282733cf8df7bfe7cae17fd726d1caf759690169 (patch)
tree4e0802c19a7114af7ba5944861b0812cf2ad2501 /addons/website/static/src/xml/website.contentMenu.xml
parent6cb5052e856a83914611898cd86d810e3ef15148 (diff)
[REF] mail: make notification methods semi-generic
mail.thread mixing class defines several methods used in notification process that are not specific to mail.thread enabled models. It means some models could override it while some other models do not even have a direct access to that method. When calling those methods we have to manually check for method being available on a record or call a default implementation from mail.thread even if the model does not inherit from the mixin. In this commit we propose to hide this check in generic wrappers located in mail.thread class. It checks for method existence on record and call the model-specific implementation or falls back on standard behavior. It allows to be sure the right method is called. Functionally behavior should stay globally the same. However when updating some addons code has been updated. Previous code could lead to records not having correct alias which should not be the case anymore. This commit is linked to task ID 47934.
Diffstat (limited to 'addons/website/static/src/xml/website.contentMenu.xml')
0 files changed, 0 insertions, 0 deletions