odoo/o-spreadsheet#7721

Created by BI, Lucas Lefèvre (lul)
Merged at b5f5d6d3910bb9d0d725c953f7e7da20ca19c843

Statuses:

label
odoo:19.0-transport-promise-lul
head
e9808486cc3a69e4d1ae6a3e207a572ed939c132
merged
1 month ago by BI, Vincent Schippefilt (vsc)
odoo/o-spreadsheet
19.0 #7721
saas-19.1 #7725
master #7726

[FIX] session: always return a Promise

If the implementation of transportService doesn't return a Promise when calling sendMessage, the session breaks.

With this commit, we ensure we always get a Promise which allows to safely call .then or .catch

task-0

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