odoo/o-spreadsheet#3842

Created by BI, Rémi Rahir (rar)
label
odoo:saas-16.3-filter-hidden-formula-from-insert-rar
head
6edec7773b9a743520f66f7bc0cdc5e589a9f85c
target
saas-16.3
merged
2 months ago by BI, Lucas Lefèvre (lul)
forward-ports

[FIX] TopBar: Remove hidden functions from the `insert` menu

The introduction of the `hidden` tag of functions in pr #1928 did not account for the `insert function` menu of the top bar that was developped at the same time.

This revision ensures that the functions marked as `hidden` do not appear in the top bar menu, similarly to their behaviour in the composer formula autocomplete assistant.

Task: 3810284

## Description:

description of this task, what is implemented and why it is implemented that way.

Task: : [TASK_ID](https://www.odoo.com/web#id=TASK_ID&action=333&active_id=2328&model=project.task&view_type=form&cids=1&menu_id=4720)

## 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