restaurant_view.xml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="view_restaurant_printer_form">
  5. <field name="name">Order Printer</field>
  6. <field name="model">restaurant.printer</field>
  7. <field name="arch" type="xml">
  8. <form string="POS Printer" version="7.0">
  9. <group col="2">
  10. <field name="name" />
  11. <field name="proxy_ip" />
  12. <field name="product_categories_ids" />
  13. </group>
  14. </form>
  15. </field>
  16. </record>
  17. <record model="ir.actions.act_window" id="action_restaurant_printer_form">
  18. <field name="name">Order Printers</field>
  19. <field name="type">ir.actions.act_window</field>
  20. <field name="res_model">restaurant.printer</field>
  21. <field name="view_type">form</field>
  22. <field name="view_mode">tree,form</field>
  23. <field name="help" type="html">
  24. <p class="oe_view_nocontent_create">
  25. Click to add a Restaurant Order Printer.
  26. </p><p>
  27. Order Printers are used by restaurants and bars to print the
  28. order updates in the kitchen/bar when the waiter updates the order.
  29. </p><p>
  30. Each Order Printer has an IP Address that defines the PosBox/Hardware
  31. Proxy where the printer can be found, and a list of product categories.
  32. An Order Printer will only print updates for prodcuts belonging to one of
  33. its categories.
  34. </p>
  35. </field>
  36. </record>
  37. <record model="ir.ui.view" id="view_restaurant_printer">
  38. <field name="name">Order Printers</field>
  39. <field name="model">restaurant.printer</field>
  40. <field name="arch" type="xml">
  41. <tree string="Restaurant Order Printers">
  42. <field name="name" />
  43. <field name="proxy_ip" />
  44. <field name="product_categories_ids" />
  45. </tree>
  46. </field>
  47. </record>
  48. <menuitem
  49. parent="point_of_sale.menu_point_config_product"
  50. action="action_restaurant_printer_form"
  51. id="menu_restaurant_printer_all"
  52. sequence="30"
  53. groups="point_of_sale.group_pos_manager"/>
  54. <record model="ir.ui.view" id="view_pos_config_form">
  55. <field name="name">pos.config.form.view.inherit</field>
  56. <field name="model">pos.config</field>
  57. <field name="inherit_id" ref="point_of_sale.view_pos_config_form"></field>
  58. <field name="arch" type="xml">
  59. <sheet position='inside'>
  60. <group string="Bar &amp; Restaurant" >
  61. <field name="iface_splitbill" />
  62. <field name="iface_printbill" />
  63. <field name="printer_ids" />
  64. </group>
  65. </sheet>
  66. </field>
  67. </record>
  68. </data>
  69. </openerp>