From a0f71fe41d010a806917f6b2c49147bac17af816 Mon Sep 17 00:00:00 2001 From: ssu Date: Tue, 15 Nov 2011 12:36:00 +0530 Subject: [PATCH] [IMP]project : view is modified by board style and column bzr revid: ssu@ssu-desktop-20111115070600-vzrq2s1aoik4ois6 --- addons/board/board.py | 20 ++++++++++---------- addons/project/board_project_view.xml | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/addons/board/board.py b/addons/board/board.py index 6a87d5b190b..df3bc981ccb 100644 --- a/addons/board/board.py +++ b/addons/board/board.py @@ -134,10 +134,10 @@ class board_board(osv.osv): res['arch'] = self._arch_preprocessing(cr, user, res['arch'], context=context) res['toolbar'] = {'print': [], 'action': [], 'relate': []} return res - - - def _arch_preprocessing(self, cr, user, arch, context=None): - from lxml import etree + + + def _arch_preprocessing(self, cr, user, arch, context=None): + from lxml import etree def remove_unauthorized_children(node): for child in node.iterchildren(): if child.tag=='action' and child.get('invisible'): @@ -145,17 +145,17 @@ class board_board(osv.osv): else: child=remove_unauthorized_children(child) return node - + def encode(s): if isinstance(s, unicode): return s.encode('utf8') return s - - archnode = etree.fromstring(encode(arch)) + + archnode = etree.fromstring(encode(arch)) return etree.tostring(remove_unauthorized_children(archnode),pretty_print=True) - - - + + + _columns = { 'name': fields.char('Dashboard', size=64, required=True), diff --git a/addons/project/board_project_view.xml b/addons/project/board_project_view.xml index f2c44fab574..a58557c94ba 100644 --- a/addons/project/board_project_view.xml +++ b/addons/project/board_project_view.xml @@ -81,16 +81,16 @@ form
- - - - - - - - - - + + + + + + + + + +