From d12f8e60e285aadd70c7d14f5e9ae1655e9dbb78 Mon Sep 17 00:00:00 2001 From: Julien Thewys Date: Tue, 9 Mar 2010 13:27:46 +0100 Subject: [PATCH] [IMP] Added noupdate support in global context. bzr revid: jth@openerp.com-20100309122746-5kwdn9mqdtu2bruv --- bin/tools/yaml_import.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/tools/yaml_import.py b/bin/tools/yaml_import.py index 7ebc1a39f70..5df4966c3ba 100644 --- a/bin/tools/yaml_import.py +++ b/bin/tools/yaml_import.py @@ -419,8 +419,10 @@ class YamlInterpreter(object): def process_context(self, node): self.context = node.__dict__ - if 'uid' in node.__dict__: - self.uid = self.get_id(node.__dict__['uid']) + if node.uid: + self.uid = self.get_id(node.uid) + if node.noupdate: + self.noupdate = node.noupdate def process_python(self, node): def log(msg, *args):