From eef29eefb2f48eda988c6d93b2a91be7931548a2 Mon Sep 17 00:00:00 2001 From: "Harry (Open ERP)" Date: Fri, 8 Jan 2010 15:38:00 +0530 Subject: [PATCH] [FIX] orm: In fields_view_get, if view not find , raise except_orm exception bzr revid: hmo@tinyerp.com-20100108100800-zqhg92ioacmi2b4j --- bin/osv/orm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index f1c36026c32..648e8c87989 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -1401,7 +1401,7 @@ class orm_template(object): else: xml = '' # 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