You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.5 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (C) 2014 - Today: GRAP (http://www.grap.coop)
  4. @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
  5. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  6. -->
  7. <odoo>
  8. <record id="view_pos_place_tree" model="ir.ui.view">
  9. <field name="model">pos.place</field>
  10. <field name="arch" type="xml">
  11. <tree>
  12. <field name="code"/>
  13. <field name="name"/>
  14. <field name="company_id" groups="base.group_multi_company"/>
  15. </tree>
  16. </field>
  17. </record>
  18. <record id="view_pos_place_form" model="ir.ui.view">
  19. <field name="model">pos.place</field>
  20. <field name="arch" type="xml">
  21. <form>
  22. <sheet>
  23. <div class="oe_button_box" name="button_box">
  24. <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive">
  25. <field name="active" widget="boolean_button" options="{&quot;terminology&quot;: &quot;archive&quot;}"/>
  26. </button>
  27. </div>
  28. <div class="oe_title">
  29. <div class="oe_edit_only">
  30. <label for="code" string="Code"/>
  31. </div>
  32. <h1>
  33. <field name="code"/>
  34. </h1>
  35. <div class="oe_edit_only">
  36. <label for="name" string="Name"/>
  37. </div>
  38. <h1>
  39. <field name="name"/>
  40. </h1>
  41. </div>
  42. <group>
  43. <group>
  44. <field name="company_id" groups="base.group_multi_company"/>
  45. </group>
  46. </group>
  47. </sheet>
  48. </form>
  49. </field>
  50. </record>
  51. <record id="action_pos_place" model="ir.actions.act_window">
  52. <field name="name">Places</field>
  53. <field name="type">ir.actions.act_window</field>
  54. <field name="res_model">pos.place</field>
  55. <field name="view_type">form</field>
  56. <field name="view_mode">tree,form</field>
  57. </record>
  58. <menuitem id="menu_pos_place"
  59. parent="point_of_sale.menu_point_config_product"
  60. groups="group_pos_place_manager"
  61. action="action_pos_place"/>
  62. </odoo>