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.

89 lines
3.4 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright 2019-2020 Elouan Le Bars <elouan@coopiteasy.be>
  4. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  5. -->
  6. <openerp>
  7. <data>
  8. <record model="ir.ui.view" id="daynumber_view_tree">
  9. <field name="name">Day Number List</field>
  10. <field name="model">beesdoo.shift.daynumber</field>
  11. <field name="arch" type="xml">
  12. <tree editable="top">
  13. <field name="name" />
  14. <field name="number" />
  15. <field name="active" />
  16. </tree>
  17. </field>
  18. </record>
  19. <record model="ir.ui.view" id="type_view_tree">
  20. <field name="name">Shift Type List</field>
  21. <field name="model">beesdoo.shift.type</field>
  22. <field name="arch" type="xml">
  23. <tree>
  24. <field name="name" />
  25. <field name="description" />
  26. <field name="active" />
  27. </tree>
  28. </field>
  29. </record>
  30. <record model="ir.ui.view" id="shift_settings_view_form">
  31. <field name="name">Shifts Configuration Form</field>
  32. <field name="model">beesdoo.shift.config.settings</field>
  33. <field name="arch" type="xml">
  34. <form string="Settings" class="oe_form_configuration" create="false" delete="false" >
  35. <header>
  36. <button string="Apply" type="object" name="execute" class="oe_highlight"/>
  37. <button string="Cancel" type="object" name="cancel" class="oe_link"/>
  38. </header>
  39. <separator string="General Settings"/>
  40. <group name="Attendance Sheets">
  41. <field name="default_task_type_id"/>
  42. </group>
  43. </form>
  44. </field>
  45. </record>
  46. <menuitem name="Configuration"
  47. id="menu_configuration_top"
  48. parent="menu_root"
  49. groups="beesdoo_shift.group_planning_management"
  50. sequence="21"
  51. />
  52. <record model="ir.actions.act_window" id="action_day_number">
  53. <field name="name">Day Number</field>
  54. <field name="res_model">beesdoo.shift.daynumber</field>
  55. <field name="view_mode">tree</field>
  56. </record>
  57. <menuitem name="Shift Day" id="menu_configuration_day"
  58. parent="menu_configuration_top" action="action_day_number" />
  59. <record model="ir.actions.act_window" id="action_type">
  60. <field name="name">Shift Type</field>
  61. <field name="res_model">beesdoo.shift.type</field>
  62. <field name="view_mode">tree,form</field>
  63. </record>
  64. <menuitem name="Shift Type" id="menu_configuration_type"
  65. parent="menu_configuration_top" action="action_type" />
  66. <record model="ir.actions.act_window" id="action_shift_settings">
  67. <field name="name">Settings</field>
  68. <field name="res_model">beesdoo.shift.config.settings</field>
  69. <field name="view_mode">form</field>
  70. <field name="target">inline</field>
  71. </record>
  72. <menuitem name="Settings"
  73. id="menu_shift_settings"
  74. parent="menu_configuration_top"
  75. action="action_shift_settings"
  76. groups="beesdoo_shift.group_cooperative_admin"
  77. />
  78. </data>
  79. </openerp>