pos_floor_views.xml 1.9 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="pos_config_id"/>
  13. </tree>
  14. </field>
  15. </record>
  16. <record id="pos_floor_view_form" model="ir.ui.view">
  17. <field name="name">Form PoS Floor</field>
  18. <field name="model">pos.floor</field>
  19. <field name="arch" type="xml">
  20. <form string="Floors">
  21. <sheet>
  22. <group col="4">
  23. <field name="name" string="Piso o Salón"/>
  24. <field name="pos_config_id" string="Terminal de Venta"/>
  25. </group>
  26. <field name="table_ids" string="Mesas">
  27. <tree string="Mesas">
  28. <field name="name"/>
  29. </tree>
  30. </field>
  31. </sheet>
  32. </form>
  33. </field>
  34. </record>
  35. <record id="pos_floor_action" model="ir.actions.act_window">
  36. <field name="name">Piso o Salón</field>
  37. <field name="type">ir.actions.act_window</field>
  38. <field name="res_model">pos.floor</field>
  39. <field name="view_type">form</field>
  40. <field name="view_mode">tree,form</field>
  41. <field name="help" type="html">
  42. <p class="oe_view_nocontent_create">
  43. Pulse para registrar un nuevo piso o salón.
  44. </p>
  45. <p>
  46. El piso del restaurante representa el lugar donde se sirve a los clientes.
  47. </p>
  48. </field>
  49. </record>
  50. <menuitem
  51. id="pos_floor_menu"
  52. name="Piso o Salón"
  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>