How to extend context value ?
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
2
Replies
2370
Views
dear Giezel Esteves,
if you use new api v8 or v9:
use this syntax
self.env.context= (self.env.context).update({'key1':value1, 'key2':value2, .....}) |
if not context: |
context= {} |
context.update({'key1':value1, 'key2':value2, .....}) |
I hope I helped you ....
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