odoo/addons/website_event/views/website_event_views.xml

35 lines
1.3 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record model="ir.ui.view" id="view_event_sale_form">
<field name="name">event.event.website.form</field>
<field name="model">event.event</field>
<field name="inherit_id" ref="event.view_event_form"/>
<field name="arch" type="xml">
<!-- add state field in header -->
<div name="button_box" position="inside">
<field name="website_url" invisible="1"/>
<button class="oe_stat_button" name="website_publish_button"
type="object" icon="fa-globe">
<field name="website_published" widget="website_button"/>
</button>
</div>
<xpath expr="//field[@name='organizer_id']" position="after">
<field name="twitter_hashtag"/>
</xpath>
<xpath expr="//button[@name='button_done']" position="before">
<button name="action_open_badge_editor"
type="object"
states="confirm"
string="Edit Badges"
class="oe_highlight"/>
<button name="action_open_badge_editor"
type="object"
states="done"
string="Edit Badges"/>
</xpath>
</field>
</record>
</odoo>