event_booth_sale/views/event_booth_views.xml

96 lines
4.4 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8" ?>
<odoo><data>
<record id="event_booth_view_form_from_event" model="ir.ui.view">
<field name="name">event.booth.view.form.inherit.sale</field>
<field name="model">event.booth</field>
<field name="inherit_id" ref="event_booth.event_booth_view_form_from_event"/>
<field name="priority">10</field>
<field name="arch" type="xml">
<div name="button_box" position="inside">
<button name="action_view_sale_order" type="object" class="oe_stat_button"
icon="fa-usd" groups="sales_team.group_sale_salesman"
invisible="not sale_order_id">
<div class="o_stat_info">
<span class="o_stat_text">Sale Order</span>
</div>
</button>
<field name="sale_order_id" invisible="1"/>
</div>
<div name="button_box" position="after">
<field name="is_paid" invisible="1"/>
<widget name="web_ribbon" title="Paid" invisible="not is_paid"/>
</div>
<field name="booth_category_id" position="after">
<field name="currency_id" invisible="1"/>
<field name="product_id" invisible="not booth_category_id"/>
<field name="price" widget="monetary" options="{'currency_field': 'currency_id'}"
invisible="not booth_category_id"/>
</field>
<group name="renter" position="after">
<group name="sales" groups="base.group_no_one"
invisible="not sale_order_line_id">
<field name="sale_order_id"/>
<field name="sale_order_line_id" readonly="state != 'available'"/>
</group>
</group>
<xpath expr="//sheet" position="inside">
<notebook groups="base.group_no_one">
<page string="Registrations" name="page_registrations">
<field name="event_booth_registration_ids" readonly="1"/>
</page>
</notebook>
</xpath>
</field>
</record>
<record id="event_booth_view_tree_from_event" model="ir.ui.view">
<field name="name">event.booth.view.tree.from.event.inherit.sale</field>
<field name="model">event.booth</field>
<field name="inherit_id" ref="event_booth.event_booth_view_tree_from_event"/>
<field name="arch" type="xml">
<field name="partner_id" position="after">
<field name="currency_id" column_invisible="True"/>
<field name="price" widget="monetary" options="{'currency_field': 'currency_id'}" sum="Total"/>
</field>
</field>
</record>
<record id="event_booth_view_search" model="ir.ui.view">
<field name="name">event.booth.view.search.inherit.sale</field>
<field name="model">event.booth</field>
<field name="inherit_id" ref="event_booth.event_booth_view_search"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='name']" position="after">
<field name="sale_order_id"/>
</xpath>
<xpath expr="//search/group/filter[@name='group_by_booth_category_id']" position="after">
<filter name="is_paid" context="{'group_by': 'is_paid'}"/>
</xpath>
</field>
</record>
<record id="event_booth_view_graph" model="ir.ui.view">
<field name="name">event.booth.event.booth.view.graph.inherit.sale</field>
<field name="model">event.booth</field>
<field name="inherit_id" ref="event_booth.event_booth_view_graph"/>
<field name="arch" type="xml">
<xpath expr="//graph" position="inside">
<field name="price" type="measure"/>
</xpath>
</field>
</record>
<record id="event_booth_view_pivot" model="ir.ui.view">
<field name="name">event.booth.event.booth.view.pivot.inherit.sale</field>
<field name="model">event.booth</field>
<field name="inherit_id" ref="event_booth.event_booth_view_pivot"/>
<field name="arch" type="xml">
<xpath expr="//pivot" position="inside">
<field name="price" type="measure"/>
</xpath>
</field>
</record>
</data></odoo>