[MERGE] YAML: Support m2o None value, courtesy of Dmitrijs Ledkovs (credativ)

bzr revid: odo@openerp.com-20111124153233-4vpb6k1c3ksllsfd
This commit is contained in:
Olivier Dony 2011-11-24 16:32:33 +01:00
commit aa6b926e74
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ class YamlInterpreter(object):
self.logger.log(logging.ERROR, 'id: %s is to long (max: 64)', id)
def get_id(self, xml_id):
if xml_id is False:
if xml_id is False or xml_id is None:
return False
#if not xml_id:
# raise YamlImportException("The xml_id should be a non empty string.")