-
Notifications
You must be signed in to change notification settings - Fork 30.2k
[FIX] web: not export readonly fields in import-compatible export #192486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX] web: not export readonly fields in import-compatible export #192486
Conversation
6c329f6 to
4bb8d98
Compare
|
For me it doesn't looks like it's wrong, but this should be reviewed by framework-py team I think. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, @ryv-odoo r+?
|
Thank you for the fix @taqu-odoo . What about the |
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 2b87eff since only some attributes of the fields are fetched. opw-4446090
4bb8d98 to
f577b65
Compare
|
@robodoo r+ |
|
@taqu-odoo @ryv-odoo 'ci/runbot' failed on this reviewed PR. |
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 2b87eff since only some attributes of the fields are fetched. opw-4446090 closes odoo/odoo#192486 Signed-off-by: Rémy Voet (ryv) <ryv@odoo.com>
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 2b87eff since only some attributes of the fields are fetched. opw-4446090 closes odoo#192486 Signed-off-by: Rémy Voet (ryv) <ryv@odoo.com>

Issue
Read-only fields appear in the export menu when the "I want to update data (import-compatible export)" checkbox is active.
Cause
The
readonlykey is missing from the field dictionnary leading to all fields being considered as not read-only.odoo/addons/web/controllers/export.py
Lines 389 to 390 in a546e2e
opw-4446090