mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-27 02:52:04 +02:00
19.0 vanilla
This commit is contained in:
parent
79f83631d5
commit
73afc09215
6267 changed files with 1534193 additions and 1130106 deletions
|
|
@ -5,7 +5,15 @@
|
|||
<field name="model">event.event.configurator</field>
|
||||
<field name="arch" type="xml">
|
||||
<form js_class="event_configurator_form">
|
||||
<group>
|
||||
<field name="has_available_tickets" invisible="1"/>
|
||||
<div invisible="has_available_tickets">
|
||||
We could not find a matching event ticket for this product. <br/>
|
||||
<a role="button" class="btn btn-link" target="_blank"
|
||||
href="/odoo/action-event.action_event_view">
|
||||
<i class="fa fa-arrow-right"/> Configure Events & Tickets
|
||||
</a>
|
||||
</div>
|
||||
<group invisible="not has_available_tickets">
|
||||
<field
|
||||
name="event_id"
|
||||
domain="[
|
||||
|
|
@ -15,29 +23,37 @@
|
|||
required="1"
|
||||
context="{'name_with_seats_availability': True}"
|
||||
options="{'no_open': True, 'no_create': True}"
|
||||
placeholder="All Events"
|
||||
/>
|
||||
<field name="event_slot_id"
|
||||
domain="[('event_id', '=', event_id)]"
|
||||
invisible="not is_multi_slots"
|
||||
required="is_multi_slots"
|
||||
context="{'name_with_seats_availability': True}"
|
||||
options="{'no_open': True, 'no_create': True}"/>
|
||||
<field
|
||||
name="event_ticket_id"
|
||||
domain="[('event_id', '=', event_id), ('product_id', '=', product_id)]"
|
||||
attrs="{
|
||||
'invisible': [('event_id', '=', False)],
|
||||
'required': [('event_id', '!=', False)],
|
||||
}"
|
||||
invisible="not event_id"
|
||||
required="event_id"
|
||||
context="{'name_with_seats_availability': True}"
|
||||
options="{'no_open': True, 'no_create': True}"
|
||||
/>
|
||||
options="{'no_open': True, 'no_create': True}"/>
|
||||
<field name="product_id" invisible="1"/>
|
||||
</group>
|
||||
<footer>
|
||||
<button string="Ok" class="btn-primary o_event_sale_js_event_configurator_ok" special="save" data-hotkey="v"/>
|
||||
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
|
||||
<button string="Add" invisible="not has_available_tickets"
|
||||
class="btn-primary o_event_sale_js_event_configurator_ok" special="save" data-hotkey="q"/>
|
||||
<button string="Discard" invisible="not has_available_tickets"
|
||||
class="btn-secondary" special="cancel" data-hotkey="x"/>
|
||||
<button string="Close" invisible="has_available_tickets"
|
||||
class="btn-secondary" special="cancel" data-hotkey="x"/>
|
||||
</footer>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="event_configurator_action" model="ir.actions.act_window">
|
||||
<field name="name">Configure an event</field>
|
||||
<field name="name">Select an Event</field>
|
||||
<field name="res_model">event.event.configurator</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">new</field>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue