-
-
Notifications
You must be signed in to change notification settings - Fork 765
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
[16.0][IMP] account-financial-tools: ADD account_loan_analytic_account #1928
base: 16.0
Are you sure you want to change the base?
Conversation
fc2067c
to
a9e1122
Compare
6950936
to
6face17
Compare
and loan | ||
and vals["account_id"] == loan.interest_expenses_account_id.id | ||
): | ||
vals["analytic_distribution"] = loan.analytic_distribution |
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.
And what if the user already define some analytic_distribution
? You completely overwrite filled values.
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.
The analytic_distribution on the move_line must follow the one on the loan : if the distribution changes on the loan, the distribution should be erased on the move_line
and loan | ||
and vals["account_id"] == loan.interest_expenses_account_id.id | ||
): | ||
vals["analytic_distribution"] = loan.analytic_distribution |
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.
Same here, during the write
.
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.
same here than for the create, the user should not be able to change the distribution on the move_line independently of the loan
6face17
to
50232bf
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.
Code LGTM
This module allows to add analytic distributions on loans and propagate them to moves when the loan is posted
50232bf
to
daa9e53
Compare
This PR has the |
This module allows to add analytic distributions on loans and propagate them to moves when the loan is posted