Skip to Content
Menu
This question has been flagged
1 Reply
4980 Views

how to get the current context values

Avatar
Discard

Please provide more details on what you are looking for and what you try to do. Client side (Javascript) or server side (python).

Best Answer

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)


Avatar
Discard