diff options
| author | Martin Trigaux <mat@odoo.com> | 2018-10-11 12:11:19 +0000 |
|---|---|---|
| committer | Raphael Collet <rco@odoo.com> | 2018-10-21 08:41:22 +0000 |
| commit | 933165ec3afa0676de4b2f3662c4c1bb2f97efc5 (patch) | |
| tree | bea8ef0c5fe5322f54a4f99f68d5efa101d23cf7 /odoo/tools/convert.py | |
| parent | de265ce63e0c93df99c710d46b8233b07c6c7c14 (diff) | |
[FIX] models: restore warning on wrong record
Was lost during d5b687a48ffb
Set the module name in the context to be able to detect errors in xml and csv import
closes odoo/odoo#27680
Diffstat (limited to 'odoo/tools/convert.py')
| -rw-r--r-- | odoo/tools/convert.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/odoo/tools/convert.py b/odoo/tools/convert.py index a9a3796a34a..b98e586a62e 100644 --- a/odoo/tools/convert.py +++ b/odoo/tools/convert.py @@ -832,6 +832,8 @@ def convert_csv_import(cr, module, fname, csvcontent, idref=None, mode='init', context = { 'mode': mode, 'module': module, + 'install_module': module, + 'install_filename': fname, 'noupdate': noupdate, } env = odoo.api.Environment(cr, SUPERUSER_ID, context) |
