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.

90 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="attendance_sheet_generation_interval"/>
  42. <field name="default_task_type_id"/>
  43. </group>
  44. </form>
  45. </field>
  46. </record>
  47. <menuitem name="Configuration"
  48. id="menu_configuration_top"
  49. parent="menu_root"
  50. groups="beesdoo_shift.group_planning_management"
  51. sequence="21"
  52. />
  53. <record model="ir.actions.act_window" id="action_day_number">
  54. <field name="name">Day Number</field>
  55. <field name="res_model">beesdoo.shift.daynumber</field>
  56. <field name="view_mode">tree</field>
  57. </record>
  58. <menuitem name="Shift Day" id="menu_configuration_day"
  59. parent="menu_configuration_top" action="action_day_number" />
  60. <record model="ir.actions.act_window" id="action_type">
  61. <field name="name">Shift Type</field>
  62. <field name="res_model">beesdoo.shift.type</field>
  63. <field name="view_mode">tree,form</field>
  64. </record>
  65. <menuitem name="Shift Type" id="menu_configuration_type"
  66. parent="menu_configuration_top" action="action_type" />
  67. <record model="ir.actions.act_window" id="action_shift_settings">
  68. <field name="name">Settings</field>
  69. <field name="res_model">beesdoo.shift.config.settings</field>
  70. <field name="view_mode">form</field>
  71. <field name="target">inline</field>
  72. </record>
  73. <menuitem name="Settings"
  74. id="menu_shift_settings"
  75. parent="menu_configuration_top"
  76. action="action_shift_settings"
  77. groups="beesdoo_shift.group_cooperative_admin"
  78. />
  79. </data>
  80. </openerp>