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][FIX] sale_commission_salesman: partner fetch for agents creation on move lines #558

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

CLaurelB
Copy link
Contributor

@CLaurelB CLaurelB commented Aug 22, 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.

Back-port of 9a2951d

…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.
@pedrobaeza pedrobaeza changed the title [FIX] sale_commission_salesman: partner fetch for agents creation on move lines [15.0][FIX] sale_commission_salesman: partner fetch for agents creation on move lines Aug 22, 2024
@pedrobaeza pedrobaeza added this to the 15.0 milestone Aug 22, 2024
Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

Thank you!

Fast-tracking it as already merged in 16.0

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 16.0-ocabot-merge-pr-558-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit f55b602 into OCA:16.0 Aug 22, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

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

@luisg123v luisg123v deleted the 16.0-backport_of_9a2951db-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.

3 participants