Odoo Help


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

Vale Trood
on 12/2/15, 9:56 AM 900 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

Vale Trood
on 12/3/15, 3:50 AM

Axel Mendoza

--Axel Mendoza--
| 7 8 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full-time employee trying to understand what to do and how

Reach me at aekroft@gmail.com

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 :/

Vale Trood
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??!!

Vale Trood
on 12/3/15, 4:28 AM

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

Vale Trood
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

Vale Trood
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

Vale Trood
on 12/3/15, 5:12 AM


Vale Trood
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: 900 times
Last updated: 12/3/15, 12:36 PM