Odoo Help

Welcome!

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

0

How to extend context value ?

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

How to extend context value ?

0
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 ....

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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