odoo/o-spreadsheet#7476

Created by fw-bot
Merged at 73c46b1c765fba97dda711f0e02cf891a31d7d4e

Statuses:

label
odoo:saas-18.2-18.0-close-side-panel-on-dup-chart-rar-464648-fw
head
79e37b4534937f519024ead03a7b79bd60c0ddd5
merged
3 days ago by BI, Rémi Rahir (rar)
odoo/o-spreadsheet
18.0 #7184
saas-18.2 #7476
saas-18.3 #7478
saas-18.4 #7480
19.0 #7481
master #7482

[FIX] SidePanel: reset initial props on model change

Currently, we store the initial props with which the sidepanel was open. This specifically occurs for charts sidepanel where we want the stat to update when we select another chart BUT we also want it to stay open when clicking the grid (hence - no active chart left).

However the moment we click on another chart than the first one, then it is supposed to become the new "default" chart.

How to reproduce:
- open the sidepanel of the first chart
- select the second chart
- delete the second chart

=> the sidepanel is still open and falls back on the first chart instead of closing.

task-5059484

Description:

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

Task: TASK_ID

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

Forward-Port-Of: #7184