In this commit we have changed some order of fields in attendees form view, changes are listed below, - moved `partner_id` field next to `event_ticket_id` and made this field editable and trackable, this change had done because currently this is the first field you see and it currently looks like this is the person that's coming. - moved `visitor_id` field below `mobile` field, so that even in debug mode, Attendee Name is the "primary" field. Apart from that right now if there are attendee data (name/email/phone) and when we update the partner_id these attendee data will be erased and updated as the new partner's information. In this commit we are improving this, if there is any attendee data it will not get erased while partner_id is updated. Attendee data will get updated only if name/email/phone fields are empty. TaskID-2670765 Part-of: odoo/odoo#79166
37 lines
1.6 KiB
XML
37 lines
1.6 KiB
XML
<?xml version="1.0"?>
|
|
<odoo><data>
|
|
<record id="event_registration_action_from_visitor" model="ir.actions.act_window">
|
|
<field name="name">Registrations</field>
|
|
<field name="res_model">event.registration</field>
|
|
<field name="view_mode">kanban,tree,form</field>
|
|
<field name="domain">[('visitor_id', 'in', [active_id])]</field>
|
|
<field name="help" type="html">
|
|
<p class="o_view_nocontent_empty_folder">
|
|
No registration linked to this visitor
|
|
</p>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="event_registration_view_form" model="ir.ui.view">
|
|
<field name="name">event.registration.view.form.inherit.online</field>
|
|
<field name="model">event.registration</field>
|
|
<field name="inherit_id" ref="event.view_event_registration_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='mobile']" position="after">
|
|
<field name="visitor_id" groups="base.group_no_one"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="event_registration_view_tree" model="ir.ui.view">
|
|
<field name="name">event.registration.view.tree.inherit.online</field>
|
|
<field name="model">event.registration</field>
|
|
<field name="inherit_id" ref="event.view_event_registration_tree"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='partner_id']" position="after">
|
|
<field name="visitor_id" optional="hide" groups="base.group_no_one"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</data></odoo>
|