Odoo Help


How to extend js var in my module?

on 8/24/16, 9:44 AM 940 views

I need to extend the chat_manager.js for displaying purpose, to add partner_ids in \https://github.com/odoo/odoo/blob/9.0/addons/mail/static/src/js/chat_manager.js#L192  js var, 

i have done this

odoo.define('myapp.chat_manager', function (require) {
"use strict";

var chat_manager = require('mail.chat_manager').make_message;

var data = require('web.data');

var msgss = new chat_manager(data)

msgss['partner_ids'] = data.partner_ids;

return msgss;


this code adds the partner_ids to msgss, but i am unable to call parent make_message and append the partner_id to it.

I am new to js plz help me.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 8/24/16, 9:44 AM
Seen: 940 times
Last updated: 8/26/16, 1:04 AM