-
-
Notifications
You must be signed in to change notification settings - Fork 686
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
[FIX] account_invoice_fixed_discount: Check base_line type #1614
Conversation
hr_expense calls _convert_to_tax_base_line_dict with base_line set to None. Comparison of base_line._name in account_invoice_fixed_discount causes an attribute error. Add extra check to ensure there is an account.move.line to check against in base_line.
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
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
This PR has the |
@pedrobaeza could you merge this or my #1636 PR? (and close the other) |
/ocabot merge patch @CRogos when this one is merged, you can rebase and add the test for better regression avoidings. |
What a great day to merge this nice PR. Let's do it! |
Congratulations, your PR was merged at 2fae541. Thanks a lot for contributing to OCA. ❤️ |
hr_expense calls _convert_to_tax_base_line_dict with base_line set to None. Comparison of base_line._name in account_invoice_fixed_discount causes an attribute error.
Add extra check to ensure there is an account.move.line to check against in base_line.