コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4774 ビュー

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
},
}); });
アバター
破棄
最善の回答

Hello please Do you have the solution of your problem?

アバター
破棄
関連投稿 返信 ビュー 活動
0
7月 16
3312
0
7月 25
271
1
7月 25
5044
0
7月 25
608
0
6月 25
691