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
Post a Comment