odoo/o-spreadsheet#7698

Created by fw-bot
Merged at a2e90fb87557c6445316e763c84477054b5285df

Statuses:

label
odoo:saas-19.1-17.0-fix-date-data-validation-adrm-486700-fw
head
af681a888fe814be8c795c003b967efa4ac932e0
merged
4 days ago by BI, Adrien Minne (adrm)
odoo/o-spreadsheet
17.0 #7496
18.0 #7677
saas-18.2 #7694
saas-18.3 #7695
saas-18.4 #7696
19.0 #7697
saas-19.1 #7698
master #7713

[FIx] data validation: fix date criterion

Description

The relative date criterion 'pastWeek/pastMonth/pastYear' were not correct. For example the 'pastWeek' criterion would span a period of 8 days instead of 7. The dates numbers were also not always rounded down, which could lead to some issues.

Task: 5343580

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: #7696
Forward-Port-Of: #7496