Skip to content

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Jan 2, 2025

Versions
16.0+

Description of the issue/feature this PR addresses:

The issue occurs when selecting a partner in an invoice, the sales team is not correctly computed. The problem arises because the default_team_id is not passed as a parameter to the context when the partner is selected, which works correctly in sales orders but fails in invoices.

Current behavior before PR:

When modifying the partner_id in an invoice, the sales team is not recomputed, leading to incorrect or missing sales team assignment.

Desired behavior after PR is merged:

After this PR is merged, modifying the partner_id on an invoice will correctly recompute the sales team by passing the default_team_id in the context, ensuring consistent behavior between invoices and sales orders.

I will now provide a short video demonstrating the error. This issue is replicable if none of the sales teams have any members assigned.
https://drive.google.com/file/d/15mUpXvdlVpGZXW976PK7EVYH6X4sm2CJ/view?usp=sharing

PR of v16 #180961

Forward-Port-Of: #191674
Forward-Port-Of: #181244

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Jan 2, 2025
@robodoo
Copy link
Contributor

robodoo commented Jan 2, 2025

Pull request status dashboard

@fw-bot
Copy link
Contributor Author

fw-bot commented Jan 2, 2025

This PR targets saas-17.4 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@fw-bot
Copy link
Contributor Author

fw-bot commented Jan 2, 2025

@feg-adhoc @Feyensv ci/runbot failed on this forward-port PR

@C3POdoo C3POdoo added the RD research & development, internal work label Jan 2, 2025
@fw-bot
Copy link
Contributor Author

fw-bot commented Jan 3, 2025

@feg-adhoc @Feyensv this forward port of #181244 is awaiting action (not merged or closed).

@Feyensv Feyensv force-pushed the saas-17.4-17.0-h-79599-feg-y0GN-fw branch from b0b7102 to 4ca3d9e Compare January 3, 2025 10:35
@fw-bot
Copy link
Contributor Author

fw-bot commented Jan 3, 2025

@feg-adhoc @Feyensv this PR was modified / updated and has become a normal PR. It must be merged directly.

@Feyensv Feyensv force-pushed the saas-17.4-17.0-h-79599-feg-y0GN-fw branch from 4ca3d9e to c4c8f96 Compare January 3, 2025 10:36
@Feyensv
Copy link
Contributor

Feyensv commented Jan 3, 2025

@robodoo r+

robodoo pushed a commit that referenced this pull request Jan 3, 2025
closes #192242

X-original-commit: e8ac922
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
@robodoo robodoo closed this Jan 3, 2025
@fw-bot fw-bot deleted the saas-17.4-17.0-h-79599-feg-y0GN-fw branch January 17, 2025 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forwardport This PR was created by @fw-bot RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants