-
-
Notifications
You must be signed in to change notification settings - Fork 194
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][IMP] account_financial_risk sale_financial_risk: Performance. Not store fields. Links to values records. Multi-company. Multi-currency. #65
Conversation
9807ff1
to
5ab1490
Compare
f2d39f4
to
7857d65
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
¿No readme updates?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is Odoo removing automatically SQL columns of the previously stored computed fields? If not, you need to add that in the migration scripts.
I also find that there's no commit separation between each feature, and it even seems to include fixes that in the computation that are independent from non stored or link. Please try to split things for better review. If not, it's very difficult to hunt any possible problem
cca9a4a
to
402d4d4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool :) Tested on runbot 👍 Missing a little update in the readme with the new feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functionally tested in runbot 👍 thanks
Are you going to perform the commit separation? |
No, I'm working in other comments |
OK, I refrain from reviewing then. I consider that important for later references, or that at least the commit message reflects all you have done.
402d4d4
to
1144dde
Compare
This PR has the |
28720dd
to
8d5979b
Compare
8d5979b
to
5be0862
Compare
Changes done |
…le_financial_risk: - Optimize code and change stored computed fields to not store to improve multi-company support - Improve multi-currency support - Convert risk amount fields to clickable link that shows traceability of amount origin - New pivot views to risk amount traceability - Simplify class style applied on risk fields - Migration script to remove old stored computed fields - Improve tests to cover new functionallity - Update translation files account_financial_risk: - Don't block refund invoice validation when partner has risk exception - Allow search partners by risk exception field - Remove obsolete cron sale_financial_risk - Create related store commercial_partner_id field in sale order line to simplify computation - Rename amt_to_invoice field to risk_amount in sale order line - Hook and migration scripts to reduce new fields computing time TT23765
5be0862
to
0f1ad80
Compare
/ocabot merge nobump |
On my way to merge this fine PR! |
Congratulations, your PR was merged at 10f2af4. Thanks a lot for contributing to OCA. ❤️ |
*_financial_risk: (account_financial_risk, account_payment_return_financial_risk sale_financial_risk)
account_financial_risk:
sale_financial_risk
@Tecnativa TT23765