[FIX] act_window False domain problem - produce after dom to lxml conversion

bzr revid: dsh@tinyerp.com-20091117091218-4mvoqnf76o7mc0an
This commit is contained in:
DSH (Open ERP) 2009-11-17 14:42:18 +05:30
parent cd74873235
commit 2cb4136c9f
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ form: module.record_id""" % (xml_id,)
view_id = False
if rec.get('view'):
view_id = self.id_get(cr, 'ir.actions.act_window', rec.get('view','').encode('utf-8'))
domain = rec.get('domain','').encode('utf-8')
domain = rec.get('domain','').encode('utf-8') or '{}'
context = rec.get('context','').encode('utf-8') or '{}'
res_model = rec.get('res_model','').encode('utf-8')
src_model = rec.get('src_model','').encode('utf-8')