From 6c60f917ce71efa3247d4c14ca499c0df007919a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 17 Mar 2010 13:08:35 +0100 Subject: [PATCH] Don't update fields attributes with view attributes It is bad to have the internal model changed by the views because it breaks the MVC pattern. --- tryton/gui/window/view_form/screen/screen.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/tryton/gui/window/view_form/screen/screen.py b/tryton/gui/window/view_form/screen/screen.py index 4eef5e2156..d2e59aa7da 100644 --- a/tryton/gui/window/view_form/screen/screen.py +++ b/tryton/gui/window/view_form/screen/screen.py @@ -301,16 +301,7 @@ class Screen(SignalEvent): def add_view(self, arch, fields, display=False, toolbar=None, context=None): if toolbar is None: toolbar = {} - def _parse_fields(node, fields): - if node.nodeType == node.ELEMENT_NODE: - if node.localName == 'field': - attrs = node_attributes(node) - fields[str(attrs['name'])].update(attrs) - return - for node2 in node.childNodes: - _parse_fields(node2, fields) xml_dom = xml.dom.minidom.parseString(arch) - _parse_fields(xml_dom, fields) for dom in common.filter_domain(self.domain): if '.' in dom[0]: