Debian Codegraph @

addons/point_of_sale/views/pos_printer_view.xml

raw
1 <odoo>
2 <record id="view_pos_printer_form" model="ir.ui.view">
3 <field name="name">Preparation Printer</field>
4 <field name="model">pos.printer</field>
5 <field name="arch" type="xml">
6 <form string="POS Printer">
7 <sheet>
8 <group>
9 <group>
10 <field name="company_id" invisible="1" />
11 <field name="name" />
12 <field name="printer_type" widget="radio"/>
13 <field name="epson_printer_ip" invisible="printer_type != 'epson_epos'"/>
14 <field name="proxy_ip" invisible="printer_type != 'iot'"/>
15 <field name="product_categories_ids" />
16 </group>
17 <group>
18 <div style="display:flex; justify-content:flex-end; align-items:flex-start; height:100%;">
19 <widget name="point_of_sale_test_epos" invisible="printer_type != 'epson_epos'"/>
20 </div>
21 </group>
22 </group>
23 </sheet>
24 </form>
25 </field>
26 </record>
27
28 <record id="action_pos_printer_form" model="ir.actions.act_window">
29 <field name="name">Preparation Printers</field>
30 <field name="res_model">pos.printer</field>
31 <field name="view_mode">list,kanban,form</field>
32 <field name="help" type="html">
33 <p class="o_view_nocontent_smiling_face">
34 Add a new preparation printer
35 </p><p>
36 Preparation printers are typically used by restaurants and bars to print the
37 orders at the kitchen/bar when the waiter updates an order.
38 </p><p>
39 Each printer can be configured to print products from a specific category.
40 The printer will then only print updates for products belonging to one of
41 its linked categories.
42 </p>
43 </field>
44 </record>
45
46 <record id="view_pos_printer" model="ir.ui.view">
47 <field name="name">Preparation Printers</field>
48 <field name="model">pos.printer</field>
49 <field name="arch" type="xml">
50 <list string="Preparation Printers">
51 <field name="name" />
52 <field name="product_categories_ids" widget="many2many_tags"/>
53 <field name="proxy_ip" optional="hide"/>
54 <field name="company_id" optional="hide"/>
55 </list>
56 </field>
57 </record>
58
59 <menuitem
60 name="Preparation Printers"
61 id="point_of_sale.menu_pos_preparation_printer"
62 parent="point_of_sale.menu_point_of_sale"
63 action="action_pos_printer_form"
64 sequence="99" />
65 </odoo>