diff options
| author | Christophe Simonis <christophe@tinyerp.com> | 2008-10-15 09:52:23 +0200 |
|---|---|---|
| committer | Christophe Simonis <christophe@tinyerp.com> | 2008-10-15 09:52:23 +0200 |
| commit | c1d58b4ffbbd22c428caf4fc6d27124e1503e64c (patch) | |
| tree | ed32b9380c784d64ce51f277da7ebc0ce397e779 /bin/tools/convert.py | |
| parent | 9d11c67875e2aa23d23a84937abfb585de0c8fd9 (diff) | |
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
Diffstat (limited to 'bin/tools/convert.py')
| -rw-r--r-- | bin/tools/convert.py | 2 |
1 files changed, 1 insertions, 1 deletions
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')) |
