[15.0][ADD] base_view_action_visibility#1263
Open
AungKoKoLin1997 wants to merge 1 commit intoOCA:15.0from
Open
[15.0][ADD] base_view_action_visibility#1263AungKoKoLin1997 wants to merge 1 commit intoOCA:15.0from
AungKoKoLin1997 wants to merge 1 commit intoOCA:15.0from
Conversation
yostashiro
reviewed
Mar 24, 2026
b5d0501 to
2506501
Compare
Contributor
Author
|
pre-commit issue fixes at #1264. |
2506501 to
2b7bb9b
Compare
yostashiro
reviewed
Mar 28, 2026
|
|
||
| if not has_duplicate_restriction and not has_delete_restriction: | ||
| return result | ||
|
|
Member
There was a problem hiding this comment.
Suggested change
| if view_type == "tree" and not has_delete_restriction: | |
| return result |
| <field name="model">ir.model</field> | ||
| <field name="inherit_id" ref="base.view_model_form" /> | ||
| <field name="arch" type="xml"> | ||
| <xpath expr="//notebook" position="before"> |
Member
There was a problem hiding this comment.
Suggested change
| <xpath expr="//notebook" position="before"> | |
| <xpath expr="//sheet/notebook" position="before"> |
| ir_model = ( | ||
| self.env["ir.model"].sudo().search([("model", "=", self._name)], limit=1) | ||
| ) | ||
| if view_type not in ("form", "tree") or not ir_model: |
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


This module allows hiding standard view actions (Duplicate and Delete) on a per-model basis through configuration on the ir.model settings. You can hide these actions for all users, or hide them and specify which security groups are allowed to still see them.
@qrtl QT6466