openerp - Using with_context in super call turns into infinite call in odoo -


in odoo context dictionary frozen no 1 can update it, 1 solution available calling method using with_context.

ctx = self.env.context.copy() ctx.update({'additional_parameter' : value}) self.with_context(ctx).methodname() 

but when use same pattern call super method result turns infinite call.

ctx = self.env.context.copy() ctx.update({'additional_parameter' : value}) super(product_product, self).with_context(ctx).create(vals) 

any highly appreciated.

i think should try @ respective line:

super(product_product, self.with_context(ctx)).create(vals) 

Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -