odoo/o-spreadsheet#7190

Created by BI, Adrien Minne (adrm)

Blocked

label
odoo:master-pivot-collapse-menu-items-adrm
head
3754f4256bb850bbdab89a0fd40500aa2eb15f5a
odoo/o-spreadsheet
master #7190 missing r+

[IMP] pivot: add menu items to collapse/expand all groups

[IMP] menu: hide parent menu if empty

A menu item would still be displayed if all its children were hidden,
opening an empty submenu. We had to manually add a isVisible logic
to all parent menu items to avoid this.

This commit make it so that a parent menu item is automatically
hidden if all its children are hidden.

[IMP] pivot: add menu items to collapse/expand all groups

This commit adds menu item int he right click context menu to:
- collapse/expand a pivot group
- collapse/expand all pivot groups

Task: 4942260

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