- Created __init__.py and __manifest__.py for the new dine360_dashboard_website module. - Implemented custom controllers to handle website routing and dashboard rendering. - Added views for website logo and shop template to enhance the user interface. - Updated dine360_reservation and dine360_restaurant modules to include dine360_table as a dependency. - Enhanced restaurant table management with new views and actions for floors and tables. - Updated docker-compose to change the exposed port for the Odoo service.
64 lines
2.5 KiB
XML
64 lines
2.5 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"/>
|
|
<field name="seats"/>
|
|
<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" 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"/>
|
|
<field name="shape"/>
|
|
</group>
|
|
<group string="POS Position & 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>
|