Odoo Help


How to extend context value ?

Giezel Esteves
on 10/28/16, 10:03 PM 459 views

How to extend context value ?

ayman mohammed adam
On 10/29/16, 2:42 AM

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 use v7 :
if not context:
     context= {}
context.update({'key1':value1, 'key2':value2, .....})

I hope I helped you ....

About This Community

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


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 10/28/16, 10:03 PM
Seen: 459 times
Last updated: 10/29/16, 2:42 AM