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

12.0 mig sale_financial_risk #14

Merged
merged 13 commits into from
May 9, 2019

Conversation

ernestotejeda
Copy link
Member

@pedrobaeza pedrobaeza added this to the 12.0 milestone Mar 7, 2019
@OCA-git-bot OCA-git-bot mentioned this pull request Mar 7, 2019
7 tasks
Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

The new field is very heavy to be compute. Can we light this up a bit with some read_group operations?

Copy link
Member

@yajo yajo left a comment

Choose a reason for hiding this comment

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

The new field seems expensive, but at least it's stored, so it shouldn't be much of a problem.

The read_group isn't a panacea: it saves some Python loops, but at the cost of increasing SQL queries (because you can't benefit of caching and prefetching). I think we can defer that "fix" until we see it's actually a problem.

Code OK, just some little obvious remarks for a little better performance.

sale_financial_risk/models/sale.py Outdated Show resolved Hide resolved
sale_financial_risk/models/sale.py Outdated Show resolved Hide resolved
sale_financial_risk/models/sale.py Outdated Show resolved Hide resolved
@pedrobaeza
Copy link
Member

@carlosdauden your last call about the method's performance.

@ernestotejeda please cover with tests all the code for not dropping coverage.

@ernestotejeda
Copy link
Member Author

@ernestotejeda please cover with tests all the code for not dropping coverage.

Done

carlosdauden and others added 2 commits March 12, 2019 19:09
[IMP] sale_financial_risk: Simplify code (Remove no directly related invoices)
@pedrobaeza pedrobaeza merged commit 1b79cb6 into OCA:12.0 May 9, 2019
@pedrobaeza pedrobaeza deleted the 12.0-mig-sale_financial_risk branch May 9, 2019 15:39
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

7 participants