Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] functions: properly handle dates #1811

Closed
wants to merge 2 commits into from
Closed

Conversation

rrahir
Copy link
Collaborator

@rrahir rrahir commented Nov 15, 2022

Description:

description of this task, what is implemented and why it is implemented that way.

Odoo task ID : 3002026

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 (_lt("qmsdf %s", abc))
  • unit tested
  • clean commented code
  • track breaking changes
  • doc is rebuild (npm run doc)
  • status is correct in Odoo

In several formulas, the comparison/lookup processes were not handling
non primitive types correctly (such as `InternalDate`objects). This
iossue was solved in a broad refactoring which is unfortunately quite
hard to backport.

This commit tries to address the issue by extracting the primitive number
value of dates before feeding it to the comparison/search processes.

Related opw 2992901
task 3002026
@rrahir
Copy link
Collaborator Author

rrahir commented Nov 15, 2022

@fw-bot ignore

@robodoo
Copy link
Collaborator

robodoo commented Nov 15, 2022

@fw-bot
Copy link
Collaborator

fw-bot commented Nov 15, 2022

Forward-port disabled.

@pro-odoo
Copy link
Collaborator

robodoo delegate=laa-odoo

@laa-odoo
Copy link
Collaborator

What about the MINUS formula ? Do we want to support these changes for this formula too ?

@laa-odoo
Copy link
Collaborator

What about the MINUS formula ? Do we want to support these changes for this formula too ?

my bad, not appropriate here

@laa-odoo
Copy link
Collaborator

robodoo r+

@robodoo
Copy link
Collaborator

robodoo commented Nov 16, 2022

@rrahir @laa-odoo because this PR has multiple commits, I need to know how to merge it:

  • merge to merge directly, using the PR as merge commit message
  • rebase-merge to rebase and merge, using the PR as merge commit message
  • rebase-ff to rebase and fast-forward

@laa-odoo
Copy link
Collaborator

rebase-ff

@laa-odoo
Copy link
Collaborator

robodoo rebase-ff

robodoo pushed a commit that referenced this pull request Nov 16, 2022
robodoo pushed a commit that referenced this pull request Nov 16, 2022
In several formulas, the comparison/lookup processes were not handling
non primitive types correctly (such as `InternalDate`objects). This
iossue was solved in a broad refactoring which is unfortunately quite
hard to backport.

This commit tries to address the issue by extracting the primitive number
value of dates before feeding it to the comparison/search processes.

Related opw 2992901
task 3002026

closes #1811

Signed-off-by: laa-odoo <laa@odoo.com>
@robodoo
Copy link
Collaborator

robodoo commented Nov 16, 2022

Merge method set to rebase and fast-forward.

@robodoo robodoo temporarily deployed to merge November 16, 2022 14:16 Inactive
@robodoo robodoo closed this Nov 16, 2022
@fw-bot fw-bot deleted the 14.0-fix-lookup-rar branch November 30, 2022 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants