odoo/o-spreadsheet#3479

Created by fw-bot
Merged at b00f15d22dd8177ec26c99a8fca0fff6e456bd6a

Statuses:

label
odoo:saas-16.4-16.0-fix-format-larg-numer-chaining-adrm-sgKY-fw
head
98eb49debd995043ebf7b274b31e744df116d53d
merged
9 months ago by BI, Adrien Minne (adrm)
odoo/o-spreadsheet
16.0 #3358
saas-16.1 #3476
saas-16.2 #3477
saas-16.3 #3478
saas-16.4 #3479
17.0 #3480
saas-17.1 #3481
master #3483

[FW][FIX] format: fix chaining of FORMAT.LARGE.NUMBER

Description

Chaining FORMAT.LARGE.NUMBER formulas was adding the postfix multiple times. This commit fixes the issue by adding a check to see if the postfix is already present.

Task: : 3633947

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