The old tree views don't really exist anymore, this odd pseudo-flag to dispatch between "list" and "tree" tree views has no reason to remain. Task 1937686 closes odoo/odoo#31243 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
31 lines
1.3 KiB
XML
31 lines
1.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
|
|
<record id="view_event_confirm" model="ir.ui.view">
|
|
<field name="name">Event Confirmation</field>
|
|
<field name="model">event.confirm</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Event Confirmation">
|
|
<span class="o_form_label">Warning: This Event has not reached its Minimum Registration Limit. Are you sure you want to confirm it?</span>
|
|
<footer>
|
|
<button name="confirm" string="Confirm Anyway" type="object" class="btn-primary"/>
|
|
<button string="Cancel" class="btn-secondary" special="cancel" />
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_event_confirm" model="ir.actions.act_window">
|
|
<field name="name">Event Confirmation</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">event.confirm</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="view_id" ref="view_event_confirm"/>
|
|
<field name="context">{'record_id' : active_id}</field>
|
|
<field name="target">new</field>
|
|
</record>
|
|
|
|
</data>
|
|
</odoo>
|