Skip to content

Conversation

@Anxo82
Copy link

@Anxo82 Anxo82 commented Oct 22, 2025

@HaraldPanten @luis-ron

[T-9051]

This fix resolves an error that occurred when creating a sale order:
after adding and saving a contact, changing the contact would trigger a delivery wizard error due to a missing order_id in choose.delivery.carrier:

Captura desde 2025-10-22 12-44-55

See also: OCA/delivery-carrier#1002

@OCA-git-bot
Copy link
Contributor

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

@Anxo82 Anxo82 marked this pull request as draft October 22, 2025 10:52
Copy link
Contributor

@jbaudoux jbaudoux left a comment

Choose a reason for hiding this comment

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

Can you add a small test for this?

@Anxo82 Anxo82 force-pushed the 17.0-fix-sale_order_carrier_auto_assign branch from 36d421d to 54e8a0e Compare October 22, 2025 11:31
@jbaudoux
Copy link
Contributor

Fwd ported to 18.0 in #3915

@jbaudoux
Copy link
Contributor

jbaudoux commented Oct 22, 2025

You maybe want to integrate this 0b97f67 here as well from #3915

When a blank SO is created and then a product line is added, the carrier should also be set.
This is because the carrier is not set on create when there are no product line.
@Anxo82
Copy link
Author

Anxo82 commented Oct 23, 2025

Cherry-picked this fix from 18.0 into 17.0
#3915

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.

3 participants