1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
|
<?xml version="1.0"?>
<odoo>
<!-- RESTAURANTS FLOORS -->
<record id="view_restaurant_floor_form" model="ir.ui.view">
<field name="name">Restaurant Floors</field>
<field name="model">restaurant.floor</field>
<field name="arch" type="xml">
<form string="Restaurant Floor">
<sheet>
<widget name="web_ribbon" title="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/>
<field name="active" invisible="1"/>
<group col="4">
<field name="name" />
<field name="pos_config_id" />
<field name="background_color" groups="base.group_no_one" />
</group>
<field name="table_ids">
<tree string='Tables'>
<field name="name" />
<field name="seats" />
<field name="shape" />
</tree>
</field>
</sheet>
</form>
</field>
</record>
<record id="view_restaurant_floor_tree" model="ir.ui.view">
<field name="name">Restaurant Floors</field>
<field name="model">restaurant.floor</field>
<field name="arch" type="xml">
<tree string="Restaurant Floors">
<field name="sequence" widget="handle" />
<field name="name" />
<field name="pos_config_id" />
</tree>
</field>
</record>
<record id="view_restaurant_floor_search" model="ir.ui.view">
<field name="name">restaurant.floor.search</field>
<field name="model">restaurant.floor</field>
<field name="arch" type="xml">
<search>
<field name="name"/>
<filter string="Archived" name="active" domain="[('active', '=', False)]"/>
</search>
</field>
</record>
<record id="view_restaurant_floor_kanban" model="ir.ui.view">
<field name="name">restaurant.floor.kanban</field>
<field name="model">restaurant.floor</field>
<field name="arch" type="xml">
<kanban class="o_kanban_mobile">
<field name="name"/>
<field name="pos_config_id" />
<templates>
<t t-name="kanban-box">
<div t-attf-class="oe_kanban_global_click">
<div><strong>Floor Name: </strong><t t-esc="record.name.value"/></div>
<div><strong>Point of Sale: </strong><t t-esc="record.pos_config_id.value"/></div>
</div>
</t>
</templates>
</kanban>
</field>
</record>
<record id="action_restaurant_floor_form" model="ir.actions.act_window">
<field name="name">Floor Plans</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">restaurant.floor</field>
<field name="view_mode">tree,kanban,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Add a new restaurant floor
</p><p>
A restaurant floor represents the place where customers are served, this is where you can
define and position the tables.
</p>
</field>
</record>
<record id="view_restaurant_table_form" model="ir.ui.view">
<field name="name">Restaurant Table</field>
<field name="model">restaurant.table</field>
<field name="arch" type="xml">
<form string="Restaurant Table">
<group col="2">
<field name="name" />
<field name="seats" />
</group>
<group col="4" string="Appearance" groups="base.group_no_one">
<field name="shape" />
<field name="color" />
<field name="position_h" />
<field name="position_v" />
<field name="width" />
<field name="height" />
</group>
</form>
</field>
</record>
<menuitem id="menu_restaurant_floor_all"
parent="point_of_sale.menu_point_config_product"
action="action_restaurant_floor_form"
sequence="10"
groups="base.group_no_one"/>
<!-- RESTAURANT PRINTERS -->
<record id="view_restaurant_printer_form" model="ir.ui.view">
<field name="name">Order Printer</field>
<field name="model">restaurant.printer</field>
<field name="arch" type="xml">
<form string="POS Printer">
<sheet>
<group>
<field name="name" />
<field name="printer_type" widget="radio"/>
<field name="proxy_ip" attrs="{'invisible': [('printer_type', '!=', 'iot')]}"/>
<field name="product_categories_ids" />
</group>
</sheet>
</form>
</field>
</record>
<record id="action_restaurant_printer_form" model="ir.actions.act_window">
<field name="name">Order Printers</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">restaurant.printer</field>
<field name="view_mode">tree,kanban,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Add a new restaurant order printer
</p><p>
Order Printers are used by restaurants and bars to print the
order updates in the kitchen/bar when the waiter updates the order.
</p><p>
Each Order Printer has an IP Address that defines the IoT Box/Hardware
Proxy where the printer can be found, and a list of product categories.
An Order Printer will only print updates for products belonging to one of
its categories.
</p>
</field>
</record>
<record id="view_restaurant_printer" model="ir.ui.view">
<field name="name">Order Printers</field>
<field name="model">restaurant.printer</field>
<field name="arch" type="xml">
<tree string="Restaurant Order Printers">
<field name="name" />
<field name="proxy_ip" />
<field name="product_categories_ids" />
</tree>
</field>
</record>
<menuitem id="menu_restaurant_printer_all"
parent="point_of_sale.menu_point_config_product"
action="action_restaurant_printer_form"
sequence="15"
groups="base.group_no_one"/>
</odoo>
|