odoo/o-spreadsheet#4642

Created by BI, Adrien Minne (adrm)
Merged at bde73c8f277a96c420fbdf33d8b119d6f2742da0

Statuses:

label
odoo:16.0-countif-data-predicates-adrm
head
5776d5f85c4aafddf9e4ebd307c28c7f29352733
merged
3 months ago by BI, Lucas Lefèvre (lul)
odoo/o-spreadsheet
16.0 #4642
17.0 #4656
saas-17.1 #4659
saas-17.2 #4660
saas-17.3 #4661
saas-17.4 #4663
master #4664

[FIX] functions: COUNTIF does not handle dates

Description

Dates predicates (eg. "<01/01/2024") were not handled in the COUNTIF function and its variants.

Related ticket: 4042962

Task: : 4045506

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

  1. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option#styling_with_css ↩↩↩