123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?xml version="1.0" encoding="utf-8"?>
- <!-- Copyright 2017 OpenSynergy Indonesia
- License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
- <openerp>
- <data>
- <record id="pos_table_view_tree" model="ir.ui.view">
- <field name="name">Tree Pos Table</field>
- <field name="model">pos.table</field>
- <field name="arch" type="xml">
- <tree>
- <field name="name" string="Nombre"/>
- <field name="type" string="Tipo"/>
- <field name="floor_id" string="Grupo"/>
- <field name="capacity" string="Número de asientos" attrs="{'invisible': [('type', '!=', 'table')]}"/>
- </tree>
- </field>
- </record>
- <record id="pos_table_view_form" model="ir.ui.view">
- <field name="name">Form Pos Table</field>
- <field name="model">pos.table</field>
- <field name="arch" type="xml">
- <form string="Restaurant Table">
- <!-- <header>
- <field name="state" widget="statusbar"/>
- </header> -->
- <group name="grp_pos_table">
- <field name="floor_id" string="Agrupar por"/>
- <field name="type" string="Tipo" widget="radio" readonly="1"/>
- <field name="name" string="Nro de Mesa" attrs="{'invisible': [('type', '!=', 'table')], 'required':[('type','=','table')]}"/>
- <field name="employee_id" string="Chofer" attrs="{'invisible': [('type', '!=', 'delivery')], 'required':[('type','=','delivery')]}"/>
- <field name="capacity" string="Número de asientos" attrs="{'invisible': [('type', '!=', 'table')]}"/>
- </group>
- </form>
- </field>
- </record>
- <record id="pos_table_action" model="ir.actions.act_window">
- <field name="name">Mesas o Delivery</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">pos.table</field>
- <field name="view_type">form</field>
- <field name="view_mode">tree,form</field>
- </record>
- <menuitem
- id="pos_table_menu"
- name="Mesas o Delivery"
- parent="point_of_sale.menu_point_config_product"
- groups="point_of_sale.group_pos_manager"
- action="pos_table_action"
- />
- </data>
- </openerp>
|