Skip to Content
Menu
This question has been flagged
1 Reply
3901 Views

I tried to override open_composer function and preprocess_message function of chatter.js . When i tried to override using extend or include, it throws an error Cannot read property 'extend' of undefined or Cannot read property 'include' of undefined. I tried like this 

odoo.define('demo.call', function (require) {
"use strict";
var composer = require('mail.composer');
var chatter = require('mail.Chatter');
chatter.ChatterComposer.extend({
preprocess_message: function(){
//code here
}, });
chatter.Chatter.include({
open_composer: function(options){
//code here
},
}); });
Avatar
Discard
Best Answer

Hello please Do you have the solution of your problem?

Avatar
Discard
Related Posts Replies Views Activity
0
Jul 16
2441
1
Dec 24
110
2
Nov 24
82
1
Oct 24
254
0
Sep 24
211