Skip to content
Snippets Groups Projects
Commit 914d4f8c authored by Dao Tuan Phong's avatar Dao Tuan Phong Committed by Martin Trigaux
Browse files

[FIX] web: use rec_name to display imported record


When expending a many2x record, a field named 'name' was used to
represent the exported record.
If there was no field 'name' on the record, expanding the many2x field
raised a KeyError in the export screen with "import-compatible export"
enabled.

Use the _rec_name instead as fallback

closes odoo/odoo#40768

Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
parent 0e19abd4
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment