Skip to content

[FIx] data validation: fix date criterion#7713

Closed
fw-bot wants to merge 1 commit intomasterfrom
master-17.0-fix-date-data-validation-adrm-486701-fw
Closed

[FIx] data validation: fix date criterion#7713
fw-bot wants to merge 1 commit intomasterfrom
master-17.0-fix-date-data-validation-adrm-486701-fw

Conversation

@fw-bot
Copy link
Collaborator

@fw-bot fw-bot commented Jan 5, 2026

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

@robodoo
Copy link
Collaborator

robodoo commented Jan 5, 2026

Pull request status dashboard

@fw-bot
Copy link
Collaborator Author

fw-bot commented Jan 5, 2026

@hokolomopo @LucasLefevre this PR targets master and is the last of the forward-port chain.

To merge the full chain, use

@robodoo r+

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@fw-bot
Copy link
Collaborator Author

fw-bot commented Jan 5, 2026

@hokolomopo @LucasLefevre ci/runbot failed on this forward-port PR

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
X-original-commit: a2e90fb
@hokolomopo hokolomopo force-pushed the master-17.0-fix-date-data-validation-adrm-486701-fw branch from 5600e7c to 5f38042 Compare January 5, 2026 10:02
@hokolomopo
Copy link
Contributor

@robodoo r+

robodoo pushed a commit that referenced this pull request Jan 5, 2026
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.

closes #7713

Task: 5343580
X-original-commit: a2e90fb
Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
Signed-off-by: Adrien Minne (adrm) <adrm@odoo.com>
@robodoo robodoo added the 19.2 label Jan 5, 2026
@robodoo robodoo closed this Jan 5, 2026
@fw-bot fw-bot deleted the master-17.0-fix-date-data-validation-adrm-486701-fw branch January 12, 2026 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants