Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4692 Visualizzazioni

 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

Avatar
Abbandona
Autore Risposta migliore

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
Avatar
Abbandona

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

Autore

Sorry, I never faced such error.

Post correlati Risposte Visualizzazioni Attività
1
ago 23
11049
1
giu 23
1839
1
mag 23
1790
1
ott 22
3899
0
mag 20
3048