You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.6 KiB
60 lines
2.6 KiB
<?xml version="1.0" encoding="utf-8" ?>
|
|
<odoo>
|
|
<!-- Salon booking view form-->
|
|
<record id="salon_booking_view_form" model="ir.ui.view">
|
|
<field name="name">salon.booking.view.form</field>
|
|
<field name="model">salon.booking</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<header>
|
|
<button name="action_approve_booking" invisible="state != 'draft'" string="Approve"
|
|
class="oe_highlight" type="object"/>
|
|
<button name="action_reject_booking" invisible="state != 'draft'" string="Reject"
|
|
class="oe_highlight" type="object"/>
|
|
<field name="state" widget="statusbar" statusbar_visible="draft,approved,rejected"/>
|
|
</header>
|
|
<sheet>
|
|
<group>
|
|
<group>
|
|
<field name="name"/>
|
|
<field name="phone"/>
|
|
<field name="service_ids" widget="many2many_tags"/>
|
|
</group>
|
|
<group>
|
|
<field name="time"/>
|
|
<field name="email"/>
|
|
<field name="chair_id"/>
|
|
<field name="company_id" invisible="1"/>
|
|
</group>
|
|
</group>
|
|
<notebook>
|
|
<page string="Current Bookings">
|
|
<field name="filtered_order_ids"/>
|
|
</page>
|
|
</notebook>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
<!-- Salons booking view tree-->
|
|
<record id="salons_booking_view_tree" model="ir.ui.view">
|
|
<field name="name">salon.booking.view.tree</field>
|
|
<field name="model">salon.booking</field>
|
|
<field name="arch" type="xml">
|
|
<list decoration-info="state == 'draft'">
|
|
<field name="name"/>
|
|
<field name="time"/>
|
|
<field name="phone"/>
|
|
<field name="email"/>
|
|
<field name="state" widget="badge" decoration-info="state == 'draft'"
|
|
decoration-success="state == 'approved'" decoration-danger="state == 'rejected'"/>
|
|
</list>
|
|
</field>
|
|
</record>
|
|
<!-- Salon booking action-->
|
|
<record id="salon_booking_action" model="ir.actions.act_window">
|
|
<field name="name">Salon Bookings</field>
|
|
<field name="res_model">salon.booking</field>
|
|
<field name="view_mode">list,form</field>
|
|
</record>
|
|
</odoo>
|
|
|