Odoo Help

Welcome!

This community 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.

1

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

By
Drees Far
on 12/2/15, 9:56 AM 468 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
0

Axel Mendoza

--Axel Mendoza--
10238
| 7 7 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 an how

Reach me at aekroft@gmail.com

Axel Mendoza
On 12/3/15, 4:10 AM

See my answer of your other question at:

https://www.odoo.com/forum/help-1/question/how-to-pass-values-to-a-popup-94034#answer_94038

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

allooooooooo

Drees Far
on 12/3/15, 6:14 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

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