[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 commit is contained in:
Haresh Shyara
2016-11-10 09:44:20 +01:00
committed by Yannick Tivisse
parent a07012fbc2
commit 1ba4fbe640
4 changed files with 8 additions and 6 deletions
@@ -67,9 +67,9 @@
id="oe_import_has_header" checked="checked"/>
<label for="oe_import_has_header">The first row
contains the label of the column</label>
<input type="checkbox" class="oe_import_advanced_mode"
<input type="checkbox" class="oe_import_advanced_mode" disabled="disabled"
id="oe_import_advanced_mode"/>
<label for="oe_import_advanced_mode">Show all fields for completion (advanced)</label>
<label for="oe_import_advanced_mode">Show fields of relation fields (advanced)</label>
<p class="oe_import_noheaders">If the file contains
the column names, Odoo can try auto-detecting the
field corresponding to the column. This makes imports