odoo/o-spreadsheet#7713
Created by fw-bot
Merged
at f255b8720dbd40b4140a5f62a6e315b0863e083b
Statuses:
- label
- odoo:master-17.0-fix-date-data-validation-adrm-486701-fw
- head
- 5f3804296c72361bd6a4eba4ae9dd37d1ec54c30
- merged
- 5 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