diff options
| author | Jairo Llopis <yajo.sk8@gmail.com> | 2016-07-11 18:07:05 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2016-09-28 13:43:41 +0200 |
| commit | 295f62741d8d416c7ce3f0af0825d5e80766ac9c (patch) | |
| tree | 51f15b59e4afde680eaf7827b2f5d0fa8a149be3 /addons/mail/static/src/xml/thread.xml | |
| parent | 94f58d647cebf3e573615c0f41a45a8a71b6aa71 (diff) | |
[FIX] tools: cherry-pick of 0529a7f9
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 #13363
Diffstat (limited to 'addons/mail/static/src/xml/thread.xml')
0 files changed, 0 insertions, 0 deletions
