summaryrefslogtreecommitdiff
path: root/doc/reference
diff options
context:
space:
mode:
authorJairo Llopis <yajo.sk8@gmail.com>2016-07-11 18:07:05 +0200
committerMartin Trigaux <mat@odoo.com>2016-07-13 09:43:38 +0200
commit0529a7f9ba8daecdcf4df61557cebc55f549bb67 (patch)
tree686f30b57fdb190fcaad7d07b408144f339ad09d /doc/reference
parentee365bbf98fb1edbc9860c6302bbd8e0d376ef72 (diff)
[FIX] tools: extract terms in correct folder
If two addons path have a common part in the folder name (e.g. `/home/alice/dev` and `/home/alice/devodoo`), the `get_module_from_path` method may match the wrong folder. A file `/home/alice/devodoo/bob/models.py` would wrongly match `/home/alice/dev` path (due to the lack of separator) and the returned module would be `odoo` (`"odoo/bob/models.py".split('/')[0]`). In such scenario, the translations of files (code, static folder, report) would not be included in the exported translation file. Force the module path to ends with a folder separator to avoid wrong matching. Closes #12757
Diffstat (limited to 'doc/reference')
0 files changed, 0 insertions, 0 deletions