[FIX] Bug {TypeError: dict.message.hasEmailCc is not a function} during the creation of a new document.

This commit is contained in:
Ihor 2019-07-22 18:10:59 +03:00 committed by Jasmin Solanki
parent b38067d1d6
commit b073cca24c
2 changed files with 11 additions and 2 deletions

View File

@ -308,7 +308,7 @@ msgstr ""
#. module: mail_tracking #. module: mail_tracking
#. openerp-web #. openerp-web
#: code:addons/mail_tracking/static/src/js/mail_tracking.js:126 #: code:addons/mail_tracking/static/src/js/mail_tracking.js:135
#, python-format #, python-format
msgid "Message tracking" msgid "Message tracking"
msgstr "" msgstr ""
@ -472,7 +472,7 @@ msgstr ""
#. module: mail_tracking #. module: mail_tracking
#. openerp-web #. openerp-web
#: code:addons/mail_tracking/static/src/js/mail_tracking.js:106 #: code:addons/mail_tracking/static/src/js/mail_tracking.js:115
#, python-format #, python-format
msgid "Tracking partner" msgid "Tracking partner"
msgstr "" msgstr ""

View File

@ -22,6 +22,15 @@ odoo.define('mail_tracking.partner_tracking', function(require){
hasPartnerTrackings: function () { hasPartnerTrackings: function () {
return false; return false;
}, },
/**
* Messages do not have any email Cc values.
*
* @return {boolean}
*/
hasEmailCc: function () {
return false;
},
}); });
Message.include({ Message.include({