summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/composers
diff options
context:
space:
mode:
authorParth Choksi <pch@odoo.com>2019-06-03 11:08:23 +0000
committerParth Choksi <pch@odoo.com>2019-06-13 05:07:43 +0000
commit2f8f832ceeae0af78393ba5d5f4deeb03a57c946 (patch)
tree6fe119485f2c56da7f102933f0ce27a5036b6526 /addons/mail/static/src/js/composers
parentd215bd81ca6f7b35985e5eef486d03f5e723469a (diff)
[FIX] mail: traceback on opening chat full composer
When full composer is opened it checks for partner information by calling get_partner_info controller, if information are missing then it opens missing partner information popup to fill missing partner information, currently if partner information is missing and if try to open full composer it throws traceback, this is due to commit: https://github.com/odoo/odoo/commit/957c99abd53b42fa82903ad7ad03300797a706cf here this._rpc is used in inner function which is wrong, it should be self._rpc Scenario: we go to an opportunity and set the email but we do not set a customer, and then when we open the chat composer by sending a message, we're getting the traceback. It will be fixed in this commit. task-2005890 closes odoo/odoo#34084 Signed-off-by: Martin Geubelle (mge) <mge@openerp.com>
Diffstat (limited to 'addons/mail/static/src/js/composers')
-rw-r--r--addons/mail/static/src/js/composers/chatter_composer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/composers/chatter_composer.js b/addons/mail/static/src/js/composers/chatter_composer.js
index 33c727a236d..ff9e9e94fb2 100644
--- a/addons/mail/static/src/js/composers/chatter_composer.js
+++ b/addons/mail/static/src/js/composers/chatter_composer.js
@@ -88,7 +88,7 @@ var ChatterComposer = BasicComposer.extend({
// partner_id
var def;
if (namesToFind.length > 0) {
- def = this._rpc({
+ def = self._rpc({
route: '/mail/get_partner_info',
params: {
model: self._model,