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

Master recompute zones everywhere laa #4134

Closed
wants to merge 2 commits into from

Conversation

laa-odoo
Copy link
Collaborator

@laa-odoo laa-odoo commented Apr 25, 2024

[REF] recompute zones: use recomputeZones on missing places

For performance reasons, this commit proposes to add
recomputeZonnes wherever we cross all the elements of
a list of zones.

[REF] zones helper: remove unused helpers

Task: 3893550

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

@robodoo
Copy link
Collaborator

robodoo commented Apr 25, 2024

@laa-odoo laa-odoo force-pushed the master-recompute-zones-everywhere-laa branch 2 times, most recently from ae2dc9c to a73c7de Compare April 25, 2024 14:30
Copy link
Collaborator

@rrahir rrahir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A little rebase is in order :/
I think we could add the use of recompute zone in a couple more places as well but there might be a reason you didn't. I'm thinking of

  • DataValidationPlugin -> handle "DELETE_CONTENT"
  • AutomaticSumPlugin -> handle "SUM_SELECTION"
  • MergePlugin -> handle "ADD_MERGE","REMOVE_MERGE"
    What do you think of those?

@laa-odoo
Copy link
Collaborator Author

A little rebase is in order :/ I think we could add the use of recompute zone in a couple more places as well but there might be a reason you didn't. I'm thinking of

  • DataValidationPlugin -> handle "DELETE_CONTENT"
  • AutomaticSumPlugin -> handle "SUM_SELECTION"
  • MergePlugin -> handle "ADD_MERGE","REMOVE_MERGE"
    What do you think of those?

Ok with DELETE_CONTENT on DataValidationPlugin

For the others, the behavior can functionally change. So no

For performance reasons, this commit proposes to add
recomputeZonnes wherever we cross all the elements of
a list of zones.

Task: 3893550
@laa-odoo laa-odoo force-pushed the master-recompute-zones-everywhere-laa branch from a73c7de to d930502 Compare May 16, 2024 13:36
@rrahir
Copy link
Collaborator

rrahir commented May 17, 2024

@robodoo rebase-ff

@robodoo
Copy link
Collaborator

robodoo commented May 17, 2024

Merge method set to rebase and fast-forward.

@rrahir
Copy link
Collaborator

rrahir commented May 17, 2024

Off we go then :D
@robodoo r+

robodoo pushed a commit that referenced this pull request May 17, 2024
For performance reasons, this commit proposes to add
recomputeZonnes wherever we cross all the elements of
a list of zones.

Task: 3893550
Part-of: #4134
robodoo pushed a commit that referenced this pull request May 17, 2024
closes #4134

Task: 3893550
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
@robodoo robodoo closed this May 17, 2024
@robodoo robodoo added the 17.3 label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants