Skip to content

Conversation

@CaparrosC
Copy link

Jairo Llopis and others added 23 commits August 19, 2025 17:13
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/it/
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/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

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/
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
@CaparrosC CaparrosC changed the title 18.0 mig sale crm event reservation [18.0][MIG] sale crm event reservation: Migration to 18.0 Aug 19, 2025
@CaparrosC CaparrosC changed the title [18.0][MIG] sale crm event reservation: Migration to 18.0 [18.0][MIG] sale_crm_event_reservation: Migration to 18.0 Aug 19, 2025
@github-actions
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Dec 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale PR/Issue without recent activity, it'll be soon closed automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants