[FIX] orm: In fields_view_get, if view not find , raise except_orm exception

bzr revid: hmo@tinyerp.com-20100108100800-zqhg92ioacmi2b4j
This commit is contained in:
Harry (Open ERP)
2010-01-08 15:38:00 +05:30
parent 75365df1ad
commit eef29eefb2
+1 -1
View File
@@ -1401,7 +1401,7 @@ class orm_template(object):
else:
xml = '<?xml version="1.0"?>' # what happens here, graph case?
# raise except_orm(_('Invalid Architecture!'),_("There is no view of type '%s' defined for the structure!") % view_type)
raise except_orm(_('Invalid Architecture!'),_("There is no view of type '%s' defined for the structure!") % view_type)
result['arch'] = etree.fromstring(encode(xml))
result['name'] = 'default'
result['field_parent'] = False