Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
4765 Vues

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
Ignorer
Meilleure réponse

Hello please Do you have the solution of your problem?

Avatar
Ignorer
Publications associées Réponses Vues Activité
0
juil. 16
3305
0
juil. 25
269
1
juil. 25
5040
0
juil. 25
600
0
juin 25
684