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.

134 lines
6.5 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. <odoo>
  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 id="res_config_settings_view_form" model="ir.ui.view">
  31. <field name="name">res.config.settings.view.form.inherit.beesdoo.shift</field>
  32. <field name="model">res.config.settings</field>
  33. <field name="priority" eval="50"/>
  34. <field name="inherit_id" ref="base.res_config_settings_view_form"/>
  35. <field name="arch" type="xml">
  36. <xpath expr="//div[hasclass('settings')]" position="inside">
  37. <div class="app_settings_block" data-string="Shifts Management" string="Shifts Management" data-key="shifts_management" groups="beesdoo_shift.group_cooperative_admin">
  38. <field name="has_accounting_entries" invisible="1"/>
  39. <h2>Attendance Sheets</h2>
  40. <div class="row mt16 o_settings_container">
  41. <div class="col-xs-12 col-md-6 o_setting_box">
  42. <div class="o_setting_left_pane">
  43. <field name="card_support"/>
  44. </div>
  45. <div class="o_setting_right_pane">
  46. <label for="card_support" string="Scan cards for validation" />
  47. <div class="text-muted">
  48. If not checked, user credentials are asked.
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. <div class="row mt16 o_settings_container">
  54. <div class="col-12 col-lg-6 o_setting_box">
  55. <div class="o_setting_right_pane">
  56. <span class="o_form_label">Attendance Sheets Generation Interval</span>
  57. <div class="text-muted">
  58. Generate attendance sheets before shifts start.
  59. </div>
  60. <div class="content-group">
  61. <div class="mt16 row">
  62. <label for="attendance_sheet_generation_interval" string="Interval (minutes)" class="col-3 col-lg-3 o_light_label"/>
  63. <field name="attendance_sheet_generation_interval" class="oe_inline" required="1"/>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. <div class="row mt16 o_settings_container">
  70. <div class="col-12 col-lg-6 o_setting_box">
  71. <div class="o_setting_right_pane">
  72. <span class="o_form_label">Default Task Type</span>
  73. <div class="text-muted">
  74. For attendance sheets automatic pre-filling.
  75. </div>
  76. <div class="content-group">
  77. <div class="mt16 row">
  78. <label for="task_type_default_id" string="Default Task Type" class="col-3 col-lg-3 o_light_label"/>
  79. <field name="task_type_default_id" class="oe_inline" required="1"/>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. </xpath>
  87. </field>
  88. </record>
  89. <menuitem name="Configuration"
  90. id="menu_configuration_top"
  91. parent="menu_root"
  92. groups="beesdoo_shift.group_planning_management"
  93. sequence="21"
  94. />
  95. <record model="ir.actions.act_window" id="action_day_number">
  96. <field name="name">Day Number</field>
  97. <field name="res_model">beesdoo.shift.daynumber</field>
  98. <field name="view_mode">tree</field>
  99. </record>
  100. <menuitem name="Shift Day" id="menu_configuration_day"
  101. parent="menu_configuration_top" action="action_day_number" />
  102. <record model="ir.actions.act_window" id="action_type">
  103. <field name="name">Shift Type</field>
  104. <field name="res_model">beesdoo.shift.type</field>
  105. <field name="view_mode">tree,form</field>
  106. </record>
  107. <menuitem name="Shift Type" id="menu_configuration_type"
  108. parent="menu_configuration_top" action="action_type" />
  109. <record model="ir.actions.act_window" id="action_shift_settings">
  110. <field name="name">Settings</field>
  111. <field name="type">ir.actions.act_window</field>
  112. <field name="res_model">res.config.settings</field>
  113. <field name="view_mode">form</field>
  114. <field name="target">inline</field>
  115. <field name="context">{'module' : 'beesdoo_shift'}</field>
  116. </record>
  117. <menuitem name="Shift Settings"
  118. id="menu_shift_settings"
  119. parent="menu_configuration_top"
  120. action="action_shift_settings"
  121. groups="beesdoo_shift.group_cooperative_admin"
  122. />
  123. </data>
  124. </odoo>