pos_floor_views.xml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2017 OpenSynergy Indonesia
  3. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
  4. <openerp>
  5. <data>
  6. <record id="pos_floor_view_tree" model="ir.ui.view">
  7. <field name="name">Tree PoS Floor</field>
  8. <field name="model">pos.floor</field>
  9. <field name="arch" type="xml">
  10. <tree>
  11. <field name="name"/>
  12. <field name="type"/>
  13. <field name="pos_config_id" string="TPV"/>
  14. </tree>
  15. </field>
  16. </record>
  17. <record id="pos_floor_view_form" model="ir.ui.view">
  18. <field name="name">Form PoS Floor</field>
  19. <field name="model">pos.floor</field>
  20. <field name="arch" type="xml">
  21. <form string="Floors">
  22. <sheet>
  23. <group col="4">
  24. <field name="type" widget="radio"/>
  25. <field name="name" string="Nombre del grupo"/>
  26. <field name="pos_config_id" string="Terminal de Venta" widget="many2many_tags"
  27. options="{'no_create_edit': True,'no_quick_create': True}"/>
  28. </group>
  29. <field name="table_ids" string="Mesas/Delivery">
  30. <tree string="Mesas/Delivery" create="false">
  31. <field name="name"/>
  32. </tree>
  33. </field>
  34. </sheet>
  35. </form>
  36. </field>
  37. </record>
  38. <record id="pos_floor_action" model="ir.actions.act_window">
  39. <field name="name">Agrupar por</field>
  40. <field name="type">ir.actions.act_window</field>
  41. <field name="res_model">pos.floor</field>
  42. <field name="view_type">form</field>
  43. <field name="view_mode">tree,form</field>
  44. <field name="help" type="html">
  45. <p class="oe_view_nocontent_create">
  46. Pulse para registrar un nuevo piso o delivery.
  47. </p>
  48. </field>
  49. </record>
  50. <menuitem
  51. id="pos_floor_menu"
  52. name="Grupos"
  53. parent="point_of_sale.menu_point_config_product"
  54. groups="point_of_sale.group_pos_manager"
  55. action="pos_floor_action"
  56. />
  57. </data>
  58. </openerp>