diff --git a/bin/tools/yaml_import.py b/bin/tools/yaml_import.py index 2f48ca51618..4e974720c6c 100644 --- a/bin/tools/yaml_import.py +++ b/bin/tools/yaml_import.py @@ -126,7 +126,7 @@ class YamlInterpreter(object): self.pool = pooler.get_pool(cr.dbname) self.uid = 1 self.context = {} # opererp context - self.eval_context = {'ref': self._ref, '_ref': self._ref, 'time': time} # added '_ref' so that record['ref'] is possible + self.eval_context = {'ref': self._ref(), '_ref': self._ref(), 'time': time} # added '_ref' so that record['ref'] is possible def _ref(self): return lambda xml_id: self.get_id(xml_id)