[FIX]: Translaiton: Fixed problem of other files included in export of translation of base module

bzr revid: mra@tinyerp.com-20091130111734-2hh985euf8n26omg
This commit is contained in:
rpa-openerp 2009-11-30 16:47:34 +05:30 committed by mra (Open ERP)
parent 7f4afd020b
commit 9119fffc19
1 changed files with 1 additions and 1 deletions

View File

@ -628,7 +628,7 @@ def trans_generate(lang, modules, dbname=None):
for fname in fnmatch.filter(files, '*.py'):
fabsolutepath = join(root, fname)
frelativepath = fabsolutepath[len(path):]
module = get_module_from_path(frelativepath)
module = get_module_from_path(fabsolutepath)
is_mod_installed = module in installed_modules
if (('all' in modules) or (module in modules)) and is_mod_installed:
code_string = tools.file_open(fabsolutepath, subdir='').read()