Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4759 มุมมอง

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?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.ค. 16
3296
0
ก.ค. 25
265
1
ก.ค. 25
5038
0
ก.ค. 25
597
0
มิ.ย. 25
683