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
This commit is contained in:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user