콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
4763 화면

 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
11127
1
6월 23
1931
1
5월 23
1875
1
10월 22
4021
0
5월 20
3113