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

[13.0][IMP] account_invoice_refund_link: Make more reliable the linking #1523

Conversation

pedrobaeza
Copy link
Member

@pedrobaeza pedrobaeza commented Aug 7, 2023

Hooking on a high level method like _reverse_move_vals (although still being private), makes that other modules hooking into it may alter the number of returned lines (like for example, account_invoice_refund_line_selection).

We choose the low-level copy_data method that is used in such method for linking the refund lines with their origin ones, avoiding the problem.

@Tecnativa

Hooking on a high level method like `_reverse_move_vals` (although still
being private), makes that other modules hooking into it may alter the
number of returned lines (like for example,
account_invoice_refund_line_selection).

We choose the low-level `copy_data` method that is used in such method
for linking the refund lines with their origin ones, avoiding the
problem.
@pedrobaeza pedrobaeza added this to the 13.0 milestone Aug 7, 2023
@pedrobaeza
Copy link
Member Author

@javierjcf this should solve your problem in #1417. Please try.

@pedrobaeza
Copy link
Member Author

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 13.0-ocabot-merge-pr-1523-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit e994b28 into OCA:13.0 Aug 7, 2023
6 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at c444ee7. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants