odoo/odoo#192486

Created by Tanguy Quéguineur (taqu)
Merged at cdb4d8617e1ef4c2557d6ccdd75ef857867ce5ff

Statuses:

label
odoo-dev:18.0-opw-4446090-web_import_compatible_export-taqu
head
f577b657def6c7d62b9cb458e3c8e1c030c6f517
merged
10 months ago by Framework (ORM), Rémy Voet (ryv)
odoo/odoo
18.0 #192486
saas-18.1 #193324
saas-18.2
saas-18.3
saas-18.4
19.0
master #193333

[FIX] web: not export readonly fields in import-compatible export

Issue

Read-only fields appear in the export menu when the "I want to update data (import-compatible export)" checkbox is active.

Cause

The readonly key is missing from the field dictionnary leading to all fields being considered as not read-only.
https://github.com/odoo/odoo/blob/a546e2e5a87c311bef054ca4a6909e63d70c91fd/addons/web/controllers/export.py#L389-L390 Issue from 2b87effeb461acddf327884dd72c00ee22a4c9aa since only some attributes of the fields are fetched.

opw-4446090