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

[15.0][IMP] account_invoice_refund_link: Make more reliable the linking #1525

Conversation

pedrobaeza
Copy link
Member

Forward-port of #1523

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 15.0 milestone Aug 7, 2023
@pedrobaeza
Copy link
Member Author

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 15.0-ocabot-merge-pr-1525-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 3e475dc into OCA:15.0 Aug 8, 2023
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 1b48185. 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