Skip to content

Syncing from upstream OCA/event (19.0) - #562

Merged
bt-admin merged 20 commits into
brain-tec:19.0from
OCA:19.0
Aug 19, 2026
Merged

bt-admin merged 20 commits into
brain-tec:19.0from
OCA:19.0

Conversation

@bt-admin

Copy link
Copy Markdown

bt_gitbot

Jairo Llopis and others added 20 commits August 18, 2026 12:26
This module extends the functionality of *crm_event*, *event_sale_reservation*
and *sale_crm* to support fast generation of event quotations from
opportunities and to allow you to sell events like a boss.

@Tecnativa TT27664

[UPD] Update sale_crm_event_reservation.pot

[UPD] README.rst
For complying with manifestoo requirements.
Currently translated at 100.0% (26 of 26 strings)

Translation: event-15.0/event-15.0-sale_crm_event_reservation
Translate-URL: https://translation.odoo-community.org/projects/event-15-0/event-15-0-sale_crm_event_reservation/es/
Currently translated at 100.0% (27 of 27 strings)

Translation: event-17.0/event-17.0-sale_crm_event_reservation
Translate-URL: https://translation.odoo-community.org/projects/event-17-0/event-17-0-sale_crm_event_reservation/it/
…der with Form to respect blocks

Manage partner blocking when creating orders with Form, redirecting to
standard action if there is no partner.
Order creation with Form is maintained and partner blocking is handled
with conditional redirection to ensure that order lines are created
correctly and all associated logic is executed, which does not happen
if the standard action `action_new_quotation` is used, which only
creates the order without lines.
However, when using `Form`, if the contact has a blocking message that
prevents the partner from being assigned, order creation fails with a
required field error. To avoid this, a conditional is added that detects
if the partner could not be assigned in the form, and in that case, it
redirects to the standard action `action_new_quotation`, passing the
partner via context (`default_partner_id`) so that the blocking message
is displayed normally, respecting the Odoo flow.
This achieves the following:
- Create the order with lines correctly when possible.
- Display the partner block if necessary without throwing errors.
- Do not lose the basic Odoo validation.
Don't compare a date with a datetime field:

```
File "/opt/odoo/auto/addons/sale_crm_event_reservation/wizards/crm_lead_event_sale_wizard.py", line 96, in <lambda>
  or ticket.end_sale_datetime >= fields.Date.context_today(self)
TypeError: can't compare datetime.datetime to datetime.date
```

TT57560
Signed-off-by pedrobaeza
@bt-admin bt-admin added the 19.0 label Aug 19, 2026
@bt-admin
bt-admin merged commit dff03d4 into brain-tec:19.0 Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants