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:
Jay Vora 2008-11-21 14:06:24 +05:30
parent 940da1038c
commit 75e0a841d7
1 changed files with 10 additions and 2 deletions

View File

@ -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,