Odoo Help


How to access to the current data of a class in an other class??

Drees Far
on 12/2/15, 9:56 AM 807 views

Hello everybody!!

 Please, my friend i have two classes.

I want to access to the current data of the first class that i am adding to the current menu in the second class.

PS: the current data are not saved, they are only entered.

Best Regards.

Hi @Drees Far, you need to be more clear when you post a question, I cannot understand your scenario

Axel Mendoza
on 12/2/15, 2:22 PM

Hi my friend; look i have some fields to enter data then i click on a button to open a popup and now i want to pass the entered data to my popup i havent save my data yet thet are only entered

Drees Far
on 12/3/15, 3:50 AM
Axel Mendoza
On 12/3/15, 4:10 AM

See my answer of your other question at:


my friend i didnt understand wht do you mean by key and field_key :/

Drees Far
on 12/3/15, 4:16 AM

key and field_key are the names under you will pass the values of the form fields in the context, using those names from the context you will retrieve the values latter on the button method or for what you need. Note that key and field_key could be any other names

Axel Mendoza
on 12/3/15, 4:23 AM

Also you need to know that before your button method is called... the form get saved

Axel Mendoza
on 12/3/15, 4:23 AM

can i pass the values without saving??!!

Drees Far
on 12/3/15, 4:28 AM

how can i add the button print in the popup because i have a report to join ??

Drees Far
on 12/3/15, 4:33 AM

Of course, but you will not pass values without saving, the form will be saved automatically, but if not get saved it will still build the context using the values and field values that you define

Axel Mendoza
on 12/3/15, 4:36 AM

Too many questions in the comments my friend, it's better to build a good question explaining everything you need, so you get a more direct answer

Axel Mendoza
on 12/3/15, 4:38 AM

You could define one button for the form 1 to open the popup and another button in the form 2 of the popup to use the context values and return a report dict action

Axel Mendoza
on 12/3/15, 4:40 AM

friend here is the link of my new answer if you want to help me please: https://www.odoo.com/fr_FR/forum/help-1/question/how-to-work-with-pop-ups-in-open-erp-94092

Drees Far
on 12/3/15, 4:47 AM

It will be better if you provide an example of what you are trying to the after test everything that I write here and on the other question, so this questions get a proper answer, you could also edit the original question with the better description and examples

Axel Mendoza
on 12/3/15, 4:51 AM

i have put the function in the other question would you help plz

Drees Far
on 12/3/15, 5:12 AM


Drees Far
on 12/3/15, 6:14 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.


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

2 follower(s)


Asked: 12/2/15, 9:56 AM
Seen: 807 times
Last updated: 12/3/15, 12:36 PM