Skip to content

[IMP] *: add warning for auto-added invisible/readonly fields in XML views#116

Open
lef-adhoc wants to merge 1 commit intoOCA:masterfrom
adhoc-dev:17.0-t-45018-lef4
Open

[IMP] *: add warning for auto-added invisible/readonly fields in XML views#116
lef-adhoc wants to merge 1 commit intoOCA:masterfrom
adhoc-dev:17.0-t-45018-lef4

Conversation

@lef-adhoc
Copy link
Contributor

More details: odoo/odoo#137031

@@ -0,0 +1,2 @@
.xml:
invisible=(["']1["']|["']True["'])|column_invisible=(["']1["']|["']True["']): "[18] Fields that are required by Python expressions (invisible, column_invisible, readonly, required, context, domain) are now added automatically as invisible and readonly. You can remove these fields from XML views unless they are necessary for specific logic. More details: https://github.com/odoo/odoo/pull/137031."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In xml code "True" and "true" are synonymous

Suggested change
invisible=(["']1["']|["']True["'])|column_invisible=(["']1["']|["']True["']): "[18] Fields that are required by Python expressions (invisible, column_invisible, readonly, required, context, domain) are now added automatically as invisible and readonly. You can remove these fields from XML views unless they are necessary for specific logic. More details: https://github.com/odoo/odoo/pull/137031."
invisible=(["']1["']|["']True["']|["']true["'])|column_invisible=(["']1["']|["']True["']|["']true["']): "[18] Fields that are required by Python expressions (invisible, column_invisible, readonly, required, context, domain) are now added automatically as invisible and readonly. You can remove these fields from XML views unless they are necessary for specific logic. More details: https://github.com/odoo/odoo/pull/137031."

@lef-adhoc
Copy link
Contributor Author

@thienvh332 There it is corrected

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@bosd
Copy link
Contributor

bosd commented Apr 12, 2025

@OCA\tools-maintainers Can you please merge? cc @guewen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants