Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
5047 Visualizzazioni

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
Abbandona
Risposta migliore

Hello please Do you have the solution of your problem?

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
lug 16
3554
0
lug 25
591
1
lug 25
5611
0
lug 25
1213
0
giu 25
1148