From c1d58b4ffbbd22c428caf4fc6d27124e1503e64c Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Wed, 15 Oct 2008 09:52:23 +0200 Subject: [PATCH] xml files: the noupdate attribute must be set to something different that '', '0' and 'False' to be active bzr revid: christophe@tinyerp.com-20081015075223-nfpmqa5fdf4kmgwi --- bin/tools/convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/tools/convert.py b/bin/tools/convert.py index 254e6b2a8d0..2438bad0cab 100644 --- a/bin/tools/convert.py +++ b/bin/tools/convert.py @@ -202,7 +202,7 @@ class assertion_report(object): class xml_import(object): def isnoupdate(self, data_node = None): - return self.noupdate or (data_node and data_node.getAttribute('noupdate')) + return self.noupdate or (data_node and data_node.getAttribute('noupdate').strip() not in ('', '0', 'False')) def get_context(self, data_node, node, eval_dict): data_node_context = (data_node and data_node.getAttribute('context').encode('utf8'))