Skip to content

[19.0][FIX] event_sale_reservation: Compatibility with sale_project - #543

Merged
OCA-git-bot merged 1 commit into
OCA:19.0from
Tecnativa:19.0-fix-event_sale_reservation
Aug 19, 2026
Merged

[19.0][FIX] event_sale_reservation: Compatibility with sale_project#543
OCA-git-bot merged 1 commit into
OCA:19.0from
Tecnativa:19.0-fix-event_sale_reservation

Conversation

@carlos-lopez-tecnativa

@carlos-lopez-tecnativa carlos-lopez-tecnativa commented Aug 14, 2026

Copy link
Copy Markdown

The sale_project module overrides _compute_product_updatable and sets it to False when the product is a service and the sale order is confirmed.

When a product created for an event reservation is a service and the sale order is confirmed, an error is raised when trying to register for the event, indicating that the product cannot be changed on the sale order line.

As there is no explicit dependency on sale_project, the sale_project method is called first.

Steps to reproduce:

Create a sale order with a product for reservation. Confirm the order.
Click Register in event.
Select the event and click Next.
The error is displayed.
image

@Tecnativa @pedrobaeza @pilarvargas-tecnativa could you please review this?

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @pilarvargas-tecnativa,
some modules you are maintaining are being modified, check this out!

@OCA-git-bot OCA-git-bot added series:19.0 mod:event_sale_reservation Module event_sale_reservation labels Aug 14, 2026
@pedrobaeza pedrobaeza added this to the 19.0 milestone Aug 14, 2026

@pedrobaeza pedrobaeza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't see side effects on this, as if sale_project compute is called first, then you overwrite later, and if it's called later, as you are not including the affected records in super, they are not modified.

Comment thread event_sale_reservation/models/sale_order_line.py Outdated
@carlos-lopez-tecnativa
carlos-lopez-tecnativa force-pushed the 19.0-fix-event_sale_reservation branch from ead016b to b46a80a Compare August 17, 2026 12:13
The sale_project module overrides _compute_product_updatable and sets it to False when the product is a service and the sale order is confirmed.

When a product created for an event reservation is a service and the sale order is confirmed, an error is raised when trying to register for the event, indicating that the product cannot be changed on the sale order line.

As there is no explicit dependency on sale_project, the sale_project method is called first.

Steps to reproduce:

Create a sale order with a product for reservation.
Confirm the order.
Click Register in event.
Select the event and click Next.
The error is displayed.
@carlos-lopez-tecnativa
carlos-lopez-tecnativa force-pushed the 19.0-fix-event_sale_reservation branch from b46a80a to f7c0564 Compare August 17, 2026 12:18
@carlos-lopez-tecnativa
carlos-lopez-tecnativa marked this pull request as ready for review August 17, 2026 12:18
@pedrobaeza

Copy link
Copy Markdown
Member

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

@OCA-git-bot
OCA-git-bot merged commit 921cadf into OCA:19.0 Aug 19, 2026
7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

@pedrobaeza
pedrobaeza deleted the 19.0-fix-event_sale_reservation branch August 19, 2026 06:17
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.

4 participants