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.

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