Odoo Help

0

how to detect that the form is being opened

By
Tarek Mohamed Ibrahim
on 4/28/15, 11:12 PM 1,127 views

Hi,

I found by tracing that when creating a new object the method view_init is issued. I need know if there is a method that is triggered when the form is opened

1

Hi,

there is a method is fields_view_get. Which is triggered when any kind of view is loaded.


Hi Emipro Technologies, Thanks for the reply, I traced it and found it is triggered when loading the form. Now I have bit more queistions : 1. I noticed that the method fields_view_get is called twice, why is that? 2. What is the role of the methods 'view_init' and 'default_get?

Tarek Mohamed Ibrahim
on 6/29/15, 4:07 AM

It is called 2 time because it loads form and tree view ... trace it again and check view_type variable

Bole
on 6/29/15, 4:56 AM

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 E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 4/28/15, 11:12 PM
Seen: 1127 times
Last updated: 6/29/15, 4:07 AM