Added the use of ref(xml_id) in act_window ,to be passed into context.Example:cci_crm:act_window:Open a New RSF
bzr revid: jvo@tinyerp.com-20081121083624-wt78ufuwmdpfvbsx
This commit is contained in:
parent
940da1038c
commit
75e0a841d7
|
@ -375,6 +375,14 @@ form: module.record_id""" % (xml_id,)
|
|||
and rec.getAttribute('auto_refresh').encode('utf-8')
|
||||
# groups_id = rec.hasAttribute('groups') and rec.getAttribute('groups').encode('utf-8')
|
||||
|
||||
# def ref() added because , if context has ref('id') eval wil use this ref
|
||||
|
||||
# active_id='active_id' # for further reference in client/bin/tools/__init__.py,not implemented yet.
|
||||
|
||||
def ref(str_id):
|
||||
return self.id_get(cr, None, str_id)
|
||||
context=eval(context)
|
||||
|
||||
res = {
|
||||
'name': name,
|
||||
'type': type,
|
||||
|
|
Loading…
Reference in New Issue