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

[FIX] sale_commission_salesman: partner fetch for agents creation on move lines #551

Merged

Conversation

CLaurelB
Copy link
Contributor

@CLaurelB CLaurelB commented Aug 8, 2024

Fetch the partner by move line record instead of fetching all partners for all invoice users related to the moves. The previous method could fetch more than one partner, including those not related to the move, when multiple lines for different moves are being processed, causing an error when trying to obtain the values of the agent and salesman_as_agent fields.

…move lines

Fetch the partner by move line record instead of fetching all partners
for all invoice users related to the moves. The previous method could
fetch more than one partner, including those not related to the move,
when multiple lines for different moves are being processed, causing an
error when trying to obtain the values of the `agent` and
`salesman_as_agent` fields.
@CLaurelB
Copy link
Contributor Author

CLaurelB commented Aug 8, 2024

@luisg123v could you review, please?

Copy link

@luisg123v luisg123v left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Hi @moylop260,

Could you review/merge, please?

CC @desdelinux

Copy link

@moylop260 moylop260 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@moylop260
Copy link

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

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

@OCA-git-bot OCA-git-bot merged commit ed4340b into OCA:17.0 Aug 21, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

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

@pedrobaeza pedrobaeza added this to the 17.0 milestone Aug 21, 2024
@pedrobaeza
Copy link
Member

Please backport it to 16.0 (in 15.0 it's already fixed).

@CLaurelB
Copy link
Contributor Author

Please backport it to 16.0 (in 15.0 it's already fixed).

Hello @pedrobaeza,

I've done this in #558

Regards.

@luisg123v luisg123v deleted the 17.0-fix_agent_ids_compute-CLaurelB branch August 22, 2024 14:34
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.

5 participants