Skip to content

Conversation

@rrahir
Copy link
Collaborator

@rrahir rrahir commented Nov 6, 2025

The logic that displays the top-level items of the topbarmenu is isolated from the Menu component logic. More specifically, it never checks if the item can be used in readonly and as such, we never took the time to define the key isReadonlyAllowed on those menu items.

However RibbonMenu relies on the logic of Menu so in order to display the topbar menu items properly in mobile mode, we need the key isReadonlyAllowed to be defined.

Task: 5245432

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 Nov 6, 2025

Pull request status dashboard

@rrahir rrahir force-pushed the saas-18.4-fix-menubar-visibility-mobile-rar branch from cbb66ad to 53821ab Compare November 6, 2025 10:21
The logic that displays the top-level items of the topbarmenu is
isolated from the `Menu` component logic. More specifically, it never
checks if the item can be used in readonly and as such, we never took
the time to define the key `isReadonlyAllowed` on those menu items.

However `RibbonMenu` relies on the logic of `Menu` so in order to
display the topbar menu items properly in mobile mode, we need the key
`isReadonlyAllowed` to be defined.

Task: 5245432
@rrahir rrahir force-pushed the saas-18.4-fix-menubar-visibility-mobile-rar branch from 53821ab to a553d44 Compare November 6, 2025 10:26
@rrahir
Copy link
Collaborator Author

rrahir commented Nov 6, 2025

@nseinlet if you want to follow the fix ^^

Copy link
Collaborator

@LucasLefevre LucasLefevre left a comment

Choose a reason for hiding this comment

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

robodoo r+

robodoo pushed a commit that referenced this pull request Nov 12, 2025
The logic that displays the top-level items of the topbarmenu is
isolated from the `Menu` component logic. More specifically, it never
checks if the item can be used in readonly and as such, we never took
the time to define the key `isReadonlyAllowed` on those menu items.

However `RibbonMenu` relies on the logic of `Menu` so in order to
display the topbar menu items properly in mobile mode, we need the key
`isReadonlyAllowed` to be defined.

closes #7415

Task: 5245432
Signed-off-by: Lucas Lefèvre (lul) <[email protected]>
@robodoo robodoo closed this Nov 12, 2025
@rrahir rrahir changed the title [FIX] TopbarMenu: specify isReadOnlyAllowed [FIX] TopbarMenu: specify isReadonlyAllowed Nov 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants