AIM : To Use the context of screen/action to the record which is getting imported (the context passed by client).
Change:
1. _update() of ir_model_data class has a new arguement context in its signature.
def _update(self,cr, uid, model, module, values, xml_id=False, store=True, noupdate=False, mode='init', res_id=False):
Will appear as
def _update(self,cr, uid, model, module, values, xml_id=False, store=True, noupdate=False, mode='init', res_id=False, context=None):
This context will be passed to OpenERP methods create(),browse(),read(),write() used withing _update().
Context is very important factor that comes into picture specially during translation.
|