summaryrefslogtreecommitdiff
path: root/addons/mail/static/tests/thread_window/basic_thread_window_tests.js
diff options
context:
space:
mode:
authorOdoo's Mergebot <xmo+roboto@odoo.com>2020-01-30 17:59:39 +0100
committerGitHub <noreply@github.com>2020-01-30 17:59:39 +0100
commitcd70571d84eefd38084bd599dfbdd46bde391074 (patch)
tree1802b2b66907faa48a3a588ca2dd04d66984db8d /addons/mail/static/tests/thread_window/basic_thread_window_tests.js
parent97a7cce164b65aedbbfbf7ed1d67d5afb92784ce (diff)
parent90959360d4ec8b8f28ac912fde4169ea0ee3d3d4 (diff)
[MERGE] event[_sale]: use event tickets without event_sale
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. See sub commits for more details. Here are a sample of main specifications linked to this task. SPECIFICATIONS: TICKET MOVE / SPLIT 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. SPECIFICATIONS: FRONTEND In this commit we move frontend part of ticket support from website_event_sale to website_event. Now eCommerce / event integration adds only payment information when registering. About tickets * if there is no ticket -> generic registration allowed; * if there is one ticket -> quick registration box; * more than one ticket -> unfolding registration box with all available tickets; About price * sale not installed -> no mention of price. A ticket without price is not free. Its description allow to tell how to pay for example; * a price is set: price is displayed; * no price is set: FREE is displayed; Most event frontend templates and controllers are therefore moved from website_event_sale to website_event. Only part about pricing and sale order creation is now located in website_event_sale. Buy flow remains mainly untouched. Indeed this commit is mainly about moving template to support tickets. SPECIFICATIONS: improve ticket model and fields propagation Remove date fields from event.type.ticket Propagate seats definition from ticket template to tickets Add a description on tickets to use in frontend Improve naming of event tickets LINKS Task ID 2177281 Community PR #43488 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/mail/static/tests/thread_window/basic_thread_window_tests.js')
0 files changed, 0 insertions, 0 deletions