[FIX] tools: unnecessary error logging

The limit of 64 characters on the XMLID has been removed a long time
ago. This error is therefore not necessary anymore.
This commit is contained in:
Nicolas Martinelli
2017-05-04 16:48:31 +02:00
parent fc06646cf9
commit 514bdcb0f1
2 changed files with 0 additions and 5 deletions
-3
View File
@@ -250,9 +250,6 @@ form: module.record_id""" % (xml_id,)
modcnt = self.env['ir.module.module'].search_count([('name', '=', module), ('state', '=', 'installed')])
assert modcnt == 1, """The ID "%s" refers to an uninstalled module""" % (xml_id,)
if len(id) > 64:
_logger.error('id: %s is to long (max: 64)', id)
def _tag_delete(self, rec, data_node=None, mode=None):
d_model = rec.get("model")
d_search = rec.get("search",'').encode('utf-8')
-2
View File
@@ -139,8 +139,6 @@ class YamlInterpreter(object):
if module != self.module:
module_count = self.env['ir.module.module'].search_count([('name', '=', module), ('state', '=', 'installed')])
assert module_count == 1, 'The ID "%s" refers to an uninstalled module.' % (xml_id,)
if len(id) > 64: # TODO where does 64 come from (DB is 128)? should be a constant or loaded form DB
_logger.error('id: %s is to long (max: 64)', id)
def get_id(self, xml_id):
if xml_id is False or xml_id is None: