Skip to content
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

[IMP] bottom_bar: prevent selection of hidden sheets #3831

Closed
wants to merge 1 commit into from

Conversation

hokolomopo
Copy link
Contributor

@hokolomopo hokolomopo commented Mar 13, 2024

Description

Before activating an hidden sheet had the side effect of making the
sheet visible. But it made possible to activate a hidden sheet in
readonly mode, since the command to un-hide the sheet was prevented.

Now the allowDispatch of ACTIVATE_SHEET prevents activating an hidden
sheet. In the bottom bar, we also now disable the menu item that
unhides & activates an hidden sheet in readonly.

Task: 3801883
Task: : 3801883

review checklist

  • feature is organized in plugin, or UI components
  • support of duplicate sheet (deep copy)
  • in model/core: ranges are Range object, and can be adapted (adaptRanges)
  • in model/UI: ranges are strings (to show the user)
  • undo-able commands (uses this.history.update)
  • multiuser-able commands (has inverse commands and transformations where needed)
  • new/updated/removed commands are documented
  • exportable in excel
  • translations (_t("qmsdf %s", abc))
  • unit tested
  • clean commented code
  • track breaking changes
  • doc is rebuild (npm run doc)
  • status is correct in Odoo

@robodoo
Copy link
Collaborator

robodoo commented Mar 13, 2024

Before activating an hidden sheet had the side effect of making the
sheet visible. But it made possible to activate a hidden sheet in
readonly mode, since the command to un-hide the sheet was prevented.

Now the allowDispatch of `ACTIVATE_SHEET` prevents activating an hidden
sheet. In the bottom bar, we also now  disable the menu item that
unhides & activates an hidden sheet in readonly.

Task: 3801883
@hokolomopo hokolomopo force-pushed the master-activate-hidden-sheet-adrm branch from 6e0ba43 to 3dd8c42 Compare March 13, 2024 13:44
@VincentSchippefilt
Copy link
Collaborator

robodoo r+

robodoo pushed a commit that referenced this pull request Mar 25, 2024
Before activating an hidden sheet had the side effect of making the
sheet visible. But it made possible to activate a hidden sheet in
readonly mode, since the command to un-hide the sheet was prevented.

Now the allowDispatch of `ACTIVATE_SHEET` prevents activating an hidden
sheet. In the bottom bar, we also now  disable the menu item that
unhides & activates an hidden sheet in readonly.

closes #3831

Task: 3801883
Signed-off-by: Vincent Schippefilt (vsc) <vsc@odoo.com>
@robodoo robodoo added the 17.3 label Mar 25, 2024
@robodoo robodoo closed this Mar 25, 2024
@fw-bot fw-bot deleted the master-activate-hidden-sheet-adrm branch April 8, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants