odoo-dine360-restaurants/addons/dine360_table/views/restaurant_table_views.xml

64 lines
2.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Tree View -->
<record id="view_restaurant_table_tree" model="ir.ui.view">
<field name="name">restaurant.table.tree.dine360</field>
<field name="model">restaurant.table</field>
<field name="arch" type="xml">
<tree string="Restaurant Tables">
<field name="floor_id"/>
<field name="name" string="Table Name"/>
<field name="seats" string="Seat Count"/>
<field name="shape"/>
</tree>
</field>
</record>
<!-- Form View -->
<record id="view_restaurant_table_form" model="ir.ui.view">
<field name="name">restaurant.table.form.dine360</field>
<field name="model">restaurant.table</field>
<field name="arch" type="xml">
<form string="Restaurant Table">
<sheet>
<div class="oe_title">
<label for="name" string="Table Name" class="oe_edit_only"/>
<h1>
<field name="name" placeholder="e.g. Table 1, T2..."/>
</h1>
</div>
<group>
<group string="Basic Configuration" name="basic_config">
<field name="floor_id" options="{'no_create': True}"/>
<field name="seats" string="Seat Count"/>
<field name="shape"/>
</group>
<group string="POS Position &amp; Size" name="pos_layout">
<field name="position_h"/>
<field name="position_v"/>
<field name="width"/>
<field name="height"/>
</group>
</group>
</sheet>
</form>
</field>
</record>
<!-- Table Window Action -->
<record id="action_restaurant_table_form" model="ir.actions.act_window">
<field name="name">Tables</field>
<field name="res_model">restaurant.table</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="view_restaurant_table_tree"/>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create a new table!
</p>
<p>
Tables are placed on floor plans. You can configure their shape, seat capacity, and custom positioning for the Point of Sale system.
</p>
</field>
</record>
</odoo>