| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<record id="product_pos_category_form_view" model="ir.ui.view"> |
| 4 |
<field name="name">pos.category.form</field> |
| 5 |
<field name="model">pos.category</field> |
| 6 |
<field name="arch" type="xml"> |
| 7 |
<form string="Pos Product Categories"> |
| 8 |
<sheet> |
| 9 |
<field name="image_512" widget="image" class="oe_avatar"/> |
| 10 |
<div class="oe_title"> |
| 11 |
<h1> |
| 12 |
<field name="name" class="o_text_overflow" placeholder="e.g. Soft Drinks" required="True"/> |
| 13 |
</h1> |
| 14 |
</div> |
| 15 |
<group> |
| 16 |
<group> |
| 17 |
<field name="parent_id" class="o_text_overflow"/> |
| 18 |
</group> |
| 19 |
<group name="sequence"> |
| 20 |
<field name="color" widget="color_picker" /> |
| 21 |
</group> |
| 22 |
<div name="available_between" class="row col-lg-12" invisible="1"> |
| 23 |
<span class="text-900 fw-bold">Available between |
| 24 |
<span class="col-lg-4 o_light_label"> |
| 25 |
<a class="o-tooltip"><sup title="Only works for online and self order">?</sup></a> |
| 26 |
</span> |
| 27 |
<field name="hour_after" class="oe_inline text-center" widget="float_time"/> and <field name="hour_until" class="oe_inline text-center" widget="float_time"/></span> |
| 28 |
</div> |
| 29 |
</group> |
| 30 |
</sheet> |
| 31 |
</form> |
| 32 |
</field> |
| 33 |
</record> |
| 34 |
<record id="product_pos_category_tree_view" model="ir.ui.view"> |
| 35 |
<field name="name">pos.category.list</field> |
| 36 |
<field name="model">pos.category</field> |
| 37 |
<field name="arch" type="xml"> |
| 38 |
<list string="Product Product Categories"> |
| 39 |
<field name="sequence" widget="handle"/> |
| 40 |
<field name="display_name" string="PoS Product Category"/> |
| 41 |
<field name="parent_id" optional="hide"/> |
| 42 |
<field name="color" widget="color_picker" optional="hide"/> |
| 43 |
</list> |
| 44 |
</field> |
| 45 |
</record> |
| 46 |
|
| 47 |
<record id="view_pos_category_kanban" model="ir.ui.view"> |
| 48 |
<field name="name">pos.category.kanban</field> |
| 49 |
<field name="model">pos.category</field> |
| 50 |
<field name="arch" type="xml"> |
| 51 |
<kanban class="o_kanban_mobile"> |
| 52 |
<templates> |
| 53 |
<t t-name="card" class="row g-0"> |
| 54 |
<aside class="col-4"> |
| 55 |
<field name="image_128" widget="image" alt="Category" options="{'size': [100, 100], 'img_class': 'h-100'}"/> |
| 56 |
</aside> |
| 57 |
<main class="col ms-4"> |
| 58 |
<field name="name" class="fw-bolder fs-5"/> |
| 59 |
</main> |
| 60 |
</t> |
| 61 |
</templates> |
| 62 |
</kanban> |
| 63 |
</field> |
| 64 |
</record> |
| 65 |
|
| 66 |
<record id="product_pos_category_action" model="ir.actions.act_window"> |
| 67 |
<field name="name">PoS Product Categories</field> |
| 68 |
<field name="res_model">pos.category</field> |
| 69 |
<field name="view_mode">list,kanban,form</field> |
| 70 |
<field name="view_id" eval="False"/> |
| 71 |
<field name="help" type="html"> |
| 72 |
<p class="o_view_nocontent_smiling_face"> |
| 73 |
Define a new category |
| 74 |
</p><p> |
| 75 |
Categories are used to browse your products through the |
| 76 |
touchscreen interface. |
| 77 |
</p> |
| 78 |
</field> |
| 79 |
</record> |
| 80 |
|
| 81 |
</odoo> |