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

[IMP] rma_sale: Avoid computing RMA move unnecessarily #441

Draft
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

sbejaoui
Copy link
Contributor

@sbejaoui sbejaoui commented Feb 3, 2025

In the RMA sale wizard, the move is computed after the wizard line is generated. This is inefficient since the line is created after iterating through the moves related to the sale order.

Assigning the move to the wizard line prevents another issue where all RMAs would be linked to a single move if the sale order line is associated with multiple moves.

@OCA-git-bot
Copy link
Contributor

Hi @chienandalu,
some modules you are maintaining are being modified, check this out!

@sbejaoui sbejaoui marked this pull request as draft February 3, 2025 17:03
sbejaoui added a commit to acsone/rma that referenced this pull request Feb 4, 2025
In the RMA sale wizard, the move is computed after the wizard line is generated.
This is inefficient since the line is created after iterating through the moves
related to the sale order.

Assigning the move to the wizard line prevents another issue where all RMAs would
be linked to a single move if the sale order line is associated with multiple moves.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants