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

 Asked by Giezel Esteves

I am creating a duplicate question because due to 500 internal server error I am not able to post the answer.

How to inherit javascript files in odoo?

I'm trying to modify this mail.thread js file. I wanted to change display_star: true to false. But with my codes it seems like it's not working.

odoo10/addons/mail/static/src/js/thread.js

Original Question

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

Hi,

You are importing a wrong class. You should import `mail.ChatThread` class.

Try this:

var MailThread = require('mail.ChatThread')

After importing ChatThread, you can extend it further which you already have done.


Sudhir Arya
ERP Harbor Consulting Services
Skype:sudhir@erpharbor.com
Website: http://www.erpharbor.com
الصورة الرمزية
إهمال

Hi Sudhir. sorry this is only way to contact you direct in error . have you found the value.format not a function error in odoo wizard for date field please let me know

الكاتب

Sorry, I never faced such error.

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أغسطس 23
11127
1
يونيو 23
1927
1
مايو 23
1872
1
أكتوبر 22
4020
0
مايو 20
3113