Files
odoo_source/addons/event/security/ir.model.access.csv
T
Thibault Delavallée 6b09c1b8c6 [REF] event: move ticket definition from event_sale to event and use ticket templates
PURPOSE

Integration between event and eCommerce is required only when users handle the
entire selling process online. However users may require ticketing support
while managing payments outside of Odoo. Purpose of this commit is to support
tickets directly in event application without need of sales.

RATIONALE

Remove the need to have event_sale installed to manage basic multi ticket
event type. Integration with eCommerce is needed only when one wants to handle
the entire selling flow online, i.e. order, payment, ... Integration with
Sales is needed only when one wants to create sale orders linked to attendees.

Many event users do not need all of this. Their attendees pay through bank
transfers or they simply manage payments outside of Odoo while still
requiring tickets management.

SPECIFICATIONS

Remove the need to have event_sale installed to manage basic ticketing on
events.

Move ticket model (event.event.ticket) directly into event, copying most
fields from event_sale. Only sale specific fields and behavior should be kept
in event_sale :

  * keep product_id and price information in event_sale;
  * keep sales analysis in event_sale;

We also split tickets model used for event type (event.type.ticket) and
events (event.event.ticket). Indeed previously to this commit both are
modeled in the same table, with the following issues :

  * tickets on templates use only a subset of fields: name, seats availability,
    product, price;
  * a ticket has either an event_id, either an event_type_id, and there are
    constraints to try to avoid having lost tickets. This leads to a strange
    model where m2o fields are required only in some cases with a dual
    behavior;
  * tickets are not shared between event.type and event.event. They are copied
    and having a single model is therefore not necessary;

We therefore choose to have a light model for event.type.ticket. It is linked
to event.type when configuring template tickets. They are copied in the
onchange copying event template configuration to the event itself, leading
to event.event.ticket creation.

Some tests are moved / completed accordingly.

Access rights are copied from website_event_sale to website_even concerning
ticket access for public / portal. Currently they are kept as they are with
some rewording as it is not the purpose of this commit to rewrite them.

LINKS

Task ID 2177281
Community PR odoo/odoo#43488
2020-01-30 15:18:08 +00:00

2.1 KiB

1idnamemodel_id:idgroup_id:idperm_readperm_writeperm_createperm_unlink
2access_event_typeevent.typemodel_event_typeevent.group_event_user1000
3access_event_type_managerevent.type managermodel_event_typeevent.group_event_manager1111
4access_event_type_ticketevent.type.ticket.usermodel_event_type_ticketevent.group_event_user1000
5access_event_type_ticket_managerevent.type.ticket.managermodel_event_type_ticketevent.group_event_manager1111
6access_event_event_portalevent.event.portalmodel_event_event1000
7access_event_event_userevent.event.usermodel_event_eventevent.group_event_user1000
8access_event_event_managerevent.event.managermodel_event_eventevent.group_event_manager1111
9access_event_event_ticket_userevent.event.ticket.usermodel_event_event_ticketevent.group_event_user1000
10access_event_event_ticket_managerevent.event.ticket.managermodel_event_event_ticketevent.group_event_manager1111
11access_event_registrationevent.registrationmodel_event_registrationevent.group_event_user1111
12access_event_registration_employeeevent.registrationmodel_event_registrationbase.group_user1000
13access_event_registration_portalevent.registrationmodel_event_registrationbase.group_portal1000
14access_event_mailevent.mailmodel_event_mailevent.group_event_user1000
15access_event_mail_managerevent.mail managermodel_event_mailevent.group_event_manager1111
16access_event_mail_registrationevent.mail.registrationmodel_event_mail_registrationevent.group_event_user1000
17access_event_mail_registration_managerevent.mail.registration.managermodel_event_mail_registrationevent.group_event_manager1111
18access_event_type_mail_event_userevent.type.mail.event.usermodel_event_type_mailevent.group_event_user1000
19access_event_type_mail_event_managerevent.type.mail.event.managermodel_event_type_mailevent.group_event_manager1111
20access_event_stage_userevent.stage.usermodel_event_stageevent.group_event_user1111
21access_event_stage_managerevent.stage.managermodel_event_stageevent.group_event_manager1111