From 757e543fe4f8bafc9ce8a7b7b5d75720858910e4 Mon Sep 17 00:00:00 2001 From: jbeficent Date: Tue, 12 Jul 2016 12:24:28 +0200 Subject: [PATCH] [FIX] fix build of tree view --- bi_view_editor/models/bve_view.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/bi_view_editor/models/bve_view.py b/bi_view_editor/models/bve_view.py index e7c2bfbd..43a5355e 100644 --- a/bi_view_editor/models/bve_view.py +++ b/bi_view_editor/models/bve_view.py @@ -117,9 +117,14 @@ class BveView(models.Model): def _create_tree_view(self): fields_info = json.loads(self.data) - view = ["""""".format(field_info['name']) - for field_info in fields_info if field_info['name']] - return view + view_fields = ["""""".format( + field_info['name'], + (field_info['row'] and 'row') or + (field_info['column'] and 'col') or + (field_info['measure'] and 'measure')) + for field_info in fields_info if field_info['row'] or + field_info['column'] or field_info['measure']] + return view_fields @api.multi def action_create(self):