Odoo Help

Welcome!

This community 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.

1

How to extend js var in my module?

By
sambath
on 8/24/16, 9:44 AM 333 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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

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