Skip to content

Conversation

@taqu-odoo
Copy link
Contributor

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.

if field.get('readonly'):
continue
Issue from 2b87eff since only some attributes of the fields are fetched.

opw-4446090

@robodoo
Copy link
Contributor

robodoo commented Jan 6, 2025

Pull request status dashboard

@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Jan 6, 2025
@taqu-odoo taqu-odoo force-pushed the 18.0-opw-4446090-web_import_compatible_export-taqu branch from 6c329f6 to 4bb8d98 Compare January 7, 2025 15:55
@abz-odoo abz-odoo marked this pull request as ready for review January 9, 2025 13:12
@abz-odoo
Copy link
Contributor

abz-odoo commented Jan 9, 2025

For me it doesn't looks like it's wrong, but this should be reviewed by framework-py team I think.
Let's mark it ready

@abz-odoo abz-odoo requested a review from kmagusiak January 9, 2025 13:12
@C3POdoo C3POdoo requested review from a team, BastienFafchamps, Julien00859, aab-odoo and rco-odoo and removed request for a team January 9, 2025 13:14
Copy link
Contributor

@kmagusiak kmagusiak left a 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+?

@ryv-odoo
Copy link
Contributor

Thank you for the fix @taqu-odoo . What about the 'exportable' attribute juste below 😬 ? we should add it too ?

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
@taqu-odoo taqu-odoo force-pushed the 18.0-opw-4446090-web_import_compatible_export-taqu branch from 4bb8d98 to f577b65 Compare January 10, 2025 16:34
@ryv-odoo
Copy link
Contributor

@robodoo r+
Thx

@robodoo
Copy link
Contributor

robodoo commented Jan 10, 2025

@taqu-odoo @ryv-odoo 'ci/runbot' failed on this reviewed PR.

gamarino pushed a commit to numaes/numa-public-odoo that referenced this pull request Jan 24, 2025
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>
@fw-bot fw-bot deleted the 18.0-opw-4446090-web_import_compatible_export-taqu branch January 25, 2025 05:41
StephaneMangin pushed a commit to camptocamp/odoo that referenced this pull request Feb 6, 2025
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OE the report is linked to a support ticket (opw-...)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants