تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
4754 أدوات العرض

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
يوليو 16
3294
0
يوليو 25
263
1
يوليو 25
5035
0
يوليو 25
593
0
يونيو 25
679