| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
|
| 4 |
<record id="view_event_registration_editor_form" model="ir.ui.view"> |
| 5 |
<field name="name">registration.editor.form</field> |
| 6 |
<field name="model">registration.editor</field> |
| 7 |
<field name="arch" type="xml"> |
| 8 |
<form string="Registration"> |
| 9 |
<sheet> |
| 10 |
<p>Before updating the linked registrations of <field name="sale_order_id" readonly="1" class="oe_inline"/> |
| 11 |
please provide attendee details.</p> |
| 12 |
<field name="event_registration_ids"> |
| 13 |
<list string="Registration" editable="top" create="false" delete="false"> |
| 14 |
<field name="event_id" readonly='1' force_save="1"/> |
| 15 |
<field name="registration_id" readonly='1' force_save="1"/> |
| 16 |
<field name="event_slot_id" domain="[('event_id', '=', event_id)]" readonly='1' force_save="1"/> |
| 17 |
<field name="event_ticket_id" domain="[('event_id', '=', event_id)]" readonly='1' force_save="1"/> |
| 18 |
<field name="name"/> |
| 19 |
<field name="email"/> |
| 20 |
<field name="phone" class="o_force_ltr"/> |
| 21 |
<field name="company_id" groups="base.group_multi_company" optional="hide"/> |
| 22 |
<field name="sale_order_line_id" column_invisible="True"/> |
| 23 |
</list> |
| 24 |
</field> |
| 25 |
</sheet> |
| 26 |
<footer> |
| 27 |
<button string="Create/Update registrations" name="action_make_registration" type="object" class="btn-primary" data-hotkey="q"/> |
| 28 |
</footer> |
| 29 |
</form> |
| 30 |
</field> |
| 31 |
</record> |
| 32 |
|
| 33 |
<record id="action_sale_order_event_registration" model="ir.actions.act_window"> |
| 34 |
<field name="name">Event Registrations</field> |
| 35 |
<field name="res_model">registration.editor</field> |
| 36 |
<field name="view_mode">form</field> |
| 37 |
<field name="view_id" ref="view_event_registration_editor_form"/> |
| 38 |
<field name="target">new</field> |
| 39 |
<field name="context">{}</field> |
| 40 |
</record> |
| 41 |
</odoo> |