[FIX] tools: error in cafe326b

If defined, use module_name, otherwise not doing much...
Courtesy of @KangOl
This commit is contained in:
Martin Trigaux 2015-09-18 10:49:29 +02:00
parent 75233860a2
commit 95a376040f
1 changed files with 1 additions and 1 deletions

View File

@ -1032,7 +1032,7 @@ def trans_load_data(cr, fileobj, fileformat, lang, lang_name=None, verbose=True,
(isinstance(res_id, basestring) and res_id.isdigit()):
dic['res_id'] = int(res_id)
if module_name:
dic['module'] = dic['module']
dic['module'] = module_name
else:
# res_id is an xml id
dic['res_id'] = None