Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

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

Subscribe

Get notified when there's activity on this post

This question has been flagged
openerp7
3 Replies
3391 Views
Avatar
Rihene

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.



1
Avatar
Discard
Axel Mendoza

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

Rihene
Author

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

Avatar
Axel Mendoza
Best Answer

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

0
Avatar
Discard
Rihene
Author

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

Axel Mendoza

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

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

Rihene
Author

can i pass the values without saving??!!

Rihene
Author

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

Axel Mendoza

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

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

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

Rihene
Author

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

Axel Mendoza

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

Rihene
Author

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

Rihene
Author

allooooooooo

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Error: NameError: name 'field' is not defined
openerp7
Avatar
Avatar
Avatar
2
May 22
35358
How to add "meta viewport" tag in OpenERP v7.0?
openerp7
Avatar
0
Mar 19
5078
return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
openerp7
Avatar
0
Jan 19
6310
I don't understand the basic concepts of related fields in Odoo/OpenERP 7.0 - can someone help with examples? Solved
openerp7
Avatar
Avatar
Avatar
4
Feb 24
13934
How to use ternary operator in Open-ERP7 for domain filter in XML ?
openerp7
Avatar
0
Jan 18
4796
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now