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

 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
8月 23
11051
1
6月 23
1849
1
5月 23
1798
1
10月 22
3907
0
5月 20
3051