diff options
| author | Martin Trigaux <mat@odoo.com> | 2020-05-11 12:46:42 +0000 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2020-05-19 08:01:17 +0000 |
| commit | c142f1628d4e7b13a7de5a8cf0790d7425badc05 (patch) | |
| tree | 178cf889fe8b835267f05597153d934e4b65845e /addons/test_mass_mailing/security/ir.model.access.csv | |
| parent | fa00ff97be5429f2d3fb43a28a8d4eb38e25f4c5 (diff) | |
[FIX] tools: reimport translations in csv
Before this commit trying to reimport csv of a translation failed.
The reason was that before 632fa044c3c20cd the parsing was common
between po and csv while now it's split in two different parsers.
The res_id column of the CSV is the external id of the record and is
handled by IrTranslationImport.
Use DictReader instead of csv_reader to easily add new keys and still
be flexible on the given csv files.
Match the POReader format with a imd_model and imd_name column.
As for the PoFileReader, the code translations are unique and must be
discarded in case of duplicate.
Correct the error message if the imported file is not correct (was
missing an argument)
Fixes odoo/odoo#50975
closes odoo/odoo#51468
X-original-commit: 3cedadb5ba606e156f52e70ed08b25ac2df8d58b
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons/test_mass_mailing/security/ir.model.access.csv')
0 files changed, 0 insertions, 0 deletions
