how to get the current context values
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
4980
Views
how to get the current context values
pass context values from view button:
<buttonname="request_stock" context="{'partial':True}" type="object"string="Btn Abc" />
receive in python:
def request_stock(self):
context = self._context.copy() or {}
partial = context.get("partial", False)
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
Please provide more details on what you are looking for and what you try to do. Client side (Javascript) or server side (python).