Odoo Help

3

0
4 Answers
1
Avatar

Nilmar Shereef

--Nilmar Shereef--
--Nilmar Shereef--

Python Developer. Odoo Techno Functional Consultant.

Nilmar Shereef
2017/11/29 上午6:08

I can console the data of chat manager from mail as below.

var chat_manager = require('mail.chat_manager');
console.log("chat_manager", chat_manager);

but, showing "undefined" when I try to console 'mail.systray'.

I don't know why it is. ! :(
(I think that js has no any return)

4 Comments
Mohammed Amal N
2017/11/29 上午6:12

have you tried 'mail.chat_client_action'? There are some files which shows this property.

Nilmar Shereef
2017/11/29 上午6:24

No, But I think that also like that.

In this case, how we can alter the functions in that js files ?

(Duplication is not possible in all time)

Mohammed Amal N
2017/11/29 上午6:27

I'm still searching for its answer. To execute it without duplication

Nilmar Shereef
2017/12/16 上午1:34

I found a reason for this.

0
Saravana Kumar
2017/10/11 上午2:41

I too having the same problem for inheriting the below js files.

1. window_manager.js file in mail module

var window_manager = require('mail.window_manager');

2. client_action.js file in mail module

var chat_client_action = require('mail.chat_client_action');

im always receiving undefined value for above code.

Any solution to fix the issue?


Note:

i'm also extending some other files in mail module that are working,

chat_manager.js & systray.js files.

2 Comments
Mohammed Amal N
2017/10/11 上午5:19

what i did was changing the xml template calling js file.

Saravana Kumar
2017/10/11 上午5:25

Can you share me the code?

Ask a Question
Writer
Tags
Keep Informed
2 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now