diff options
| author | Haresh Shyara <hsh@odoo.com> | 2017-01-03 09:50:35 +0100 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2017-01-03 12:07:47 +0100 |
| commit | c02b2ca7d1842e8d405d4ffc20eda71a5b93a172 (patch) | |
| tree | c144ec9aa2997799b361700ec0947b1652dfe1c9 /addons/base_import/static/src/js | |
| parent | 4c798a269069e704bc4be38421799969f8ce3f85 (diff) | |
[IMP] base_import: Improve import preview for related fields
normal mode: Importing only regular/basic fields from source file
advanced mode: Importing any related fields from source file(i.e. if detected pattern in header like '<relational_fieldname>/<fname>')
- Rename following checkbox "Show all fields for completion (advanced)" in "Show fields of relation fields (advanced)"
- If the import file contains a column with a field of a relation field, show the column label in the preview, even if "Show fields of relation fields (advanced)" is not checked > to make it less confusing when importing advanced files (e.g. products with attributes)
This is a backport of 1ba4fbe640cf, which was performed due to several
tickets mentioning confusion with the new import system.
Diffstat (limited to 'addons/base_import/static/src/js')
| -rw-r--r-- | addons/base_import/static/src/js/base_import.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/base_import/static/src/js/base_import.js b/addons/base_import/static/src/js/base_import.js index b3b905b36a5..a0d8b135228 100644 --- a/addons/base_import/static/src/js/base_import.js +++ b/addons/base_import/static/src/js/base_import.js @@ -366,6 +366,7 @@ var DataImport = Widget.extend(ControlPanelMixin, { this.$buttons.filter('.o_import_button').add(this.$('.oe_import_file_reload')) .prop('disabled', false); this.$el.addClass('oe_import_preview'); + this.$('input.oe_import_advanced_mode').prop('checked', result.advanced_mode); this.$('.oe_import_grid').html(QWeb.render('ImportView.preview', result)); if (result.headers.length === 1) { |
