Monday, October 5, 2009

Base, Ir_model_data , _update


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.



3 comments:

  1. thanks for sharing this site. there are various kinds of ebooks available from here

    http://feboook.blogspot.com

    ReplyDelete
  2. Although the blogs that you provide are more technical than explanatory but these serve the purpose for which they are written.Good job man!

    Lauren
    sap testing tools

    ReplyDelete