-
-
Notifications
You must be signed in to change notification settings - Fork 771
[16.0][FIX] account_billing: fix issue when create billings from refunds #2195
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
Conversation
|
Hi @Saran440, |
5c22ff1 to
e87bbc8
Compare
yostashiro
left a comment
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 review. LGTM. 👍
Saran440
left a comment
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.
LGTM 👍
In my opinion, should we add a new method so other modules can hook into it?
{
"partner_id": partner.id,
"bill_type": self._get_billing_type(),
"billing_line_ids": [
Command.create(
{
"move_id": m.id,
"amount_total": m.amount_total * (-1 if m.move_type in ["out_refund", "in_refund"] else 1),
"amount_residual": m.amount_residual * (-1 if m.move_type in ["out_refund", "in_refund"] else 1),
}
)
for m in self
],
}
@Saran440 I think it is better to have a method |
|
I agree with you 👍 |
|
@yostashiro @Saran440 I added the new commit to follow up on my above comment. |
|
This PR has the |
1 similar comment
|
This PR has the |
nobuQuartile
left a comment
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.
LGTM
Functional review
yostashiro
left a comment
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.
LGTM.
465141e to
6c8ebef
Compare
etobella
left a comment
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.
LGTM
|
/ocabot merge minor |
|
On my way to merge this fine PR! |
|
Congratulations, your PR was merged at f546245. Thanks a lot for contributing to OCA. ❤️ |
This PR fixes an issue that occurs when creating billings from the list view of credit notes, or when creating credit notes and invoices together by calling
_create_billingfrom dependency modules or test cases.@qrtl QT6260