跳至內容
選單
此問題已被標幟
1 回覆
4776 瀏覽次數

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
3315
0
7月 25
280
1
7月 25
5049
0
7月 25
612
0
6月 25
694