res_config_settings_views.xml 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <odoo>
  3. <record id="res_config_settings_view_form" model="ir.ui.view">
  4. <field name="name">res.config.settings.view.form.inherit.hr.timesheet</field>
  5. <field name="model">res.config.settings</field>
  6. <field name="priority" eval="55"/>
  7. <field name="inherit_id" ref="base.res_config_settings_view_form"/>
  8. <field name="arch" type="xml">
  9. <xpath expr="//div[hasclass('settings')]" position="inside">
  10. <div class="app_settings_block" data-string="Timesheets" string="Timesheets" data-key="hr_timesheet" groups="hr_timesheet.group_timesheet_manager" id="timesheets">
  11. <h2>Time Encoding</h2>
  12. <div class="row mt16 o_settings_container" name="time_encoding_setting_container">
  13. <div class="col-12 col-lg-6 o_setting_box"
  14. id="time_mode_setting"
  15. attrs="{'invisible':[('project_time_mode_id', '!=', False)]}">
  16. <div class="o_setting_right_pane">
  17. <label for="project_time_mode_id"/>
  18. <span class="fa fa-lg fa-building-o" title="Values set here are company-specific." groups="base.group_multi_company"/>
  19. <div class="content-group">
  20. <div class="mt16">
  21. <field name="project_time_mode_id" options="{'no_create': True, 'no_open': True}"/>
  22. </div>
  23. </div>
  24. </div>
  25. </div>
  26. <div class="col-12 col-lg-6 o_setting_box" id="time_unit_timesheets_setting">
  27. <div class="o_setting_right_pane">
  28. <label for="timesheet_encode_uom_id"/>
  29. <span class="fa fa-lg fa-building-o" title="Values set here are company-specific." groups="base.group_multi_company"/>
  30. <div class="row">
  31. <div class="text-muted col-md-12">
  32. Time unit used to record your timesheets
  33. </div>
  34. </div>
  35. <div class="content-group">
  36. <div class="mt16">
  37. <field name="timesheet_encode_uom_id" options="{'no_create': True, 'no_open': True}" required="1" class="col-lg-5 ps-0"/>
  38. <field name="is_encode_uom_days" invisible="1"/>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. <div class="col-12 col-lg-6 o_setting_box" id="synchronize_web_mobile_setting" invisible="1">
  44. <div class="o_setting_left_pane">
  45. <field name="module_project_timesheet_synchro" widget="upgrade_boolean"/>
  46. </div>
  47. <div class="o_setting_right_pane">
  48. <label for="module_project_timesheet_synchro"/>
  49. <div class="text-muted">
  50. Track your time from anywhere, even offline, with our web/mobile apps
  51. </div>
  52. <div class="content-group">
  53. <div class="row mt16 oe_center">
  54. <div class="col-lg-3 pe-0 o_chrome_store_link d-none d-sm-inline-block">
  55. <a href="http://www.odoo.com/app/timesheet?platform=chrome" class="align-middle" target="_blank">
  56. <img alt="Google Chrome Store" class="img img-fluid align-middle mt-1" style="height: 85% !important;" src="project/static/src/img/chrome_store.png"/>
  57. </a>
  58. </div>
  59. <div class="col-lg-3 pe-0">
  60. <a href="https://apps.apple.com/be/app/awesome-timesheet/id1078657549" class="align-middle" target="_blank">
  61. <img alt="Apple App Store" class="img img-fluid h-100 o_config_app_store" src="project/static/src/img/app_store.png"/>
  62. </a>
  63. </div>
  64. <div class="col-lg-3 pe-0">
  65. <a href="https://play.google.com/store/apps/details?id=com.odoo.OdooTimesheets" class="align-middle" target="_blank">
  66. <img alt="Google Play Store" class="img img-fluid h-100 o_config_play_store" src="project/static/src/img/play_store.png"/>
  67. </a>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. <h2>Timesheets Control</h2>
  75. <div class="row mt16 o_settings_container">
  76. <div class="col-12 col-lg-6 o_setting_box">
  77. <div class="o_setting_left_pane">
  78. <field name="reminder_user_allow" widget="upgrade_boolean"/>
  79. </div>
  80. <div class="o_setting_right_pane" id="reminder_user_allow">
  81. <label for="reminder_user_allow"/>
  82. <span class="fa fa-lg fa-building-o " title="Values set here are company-specific." groups="base.group_multi_company"/>
  83. <div class="text-muted">
  84. Send a periodical email reminder to timesheets users<br/>
  85. that still have timesheets to encode
  86. </div>
  87. </div>
  88. </div>
  89. <div class="col-12 col-lg-6 o_setting_box">
  90. <div class="o_setting_left_pane">
  91. <field name="reminder_manager_allow" widget="upgrade_boolean"/>
  92. </div>
  93. <div class="o_setting_right_pane" id="reminder_manager_allow">
  94. <label for="reminder_manager_allow"/>
  95. <span class="fa fa-lg fa-building-o " title="Values set here are company-specific." groups="base.group_multi_company"/>
  96. <div class="text-muted">
  97. Send a periodical email reminder to timesheets managers<br/>
  98. that still have timesheets to validate
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. <div name="section_leaves">
  104. <h2>Time Off</h2>
  105. <div class="row mt16 o_settings_container" name="timesheet_control">
  106. <div class="col-12 col-lg-6 o_setting_box" id="timesheet_off_validation_setting">
  107. <div class="o_setting_left_pane">
  108. <field name="module_project_timesheet_holidays"/>
  109. </div>
  110. <div class="o_setting_right_pane">
  111. <label for="module_project_timesheet_holidays"/>
  112. <span class="fa fa-lg fa-building-o" title="Values set here are company-specific." groups="base.group_multi_company"/>
  113. <div class="text-muted">
  114. Generate timesheets upon time off validation
  115. </div>
  116. <div class="content-group">
  117. <div id="module_project_timesheet_holidays"/>
  118. </div>
  119. </div>
  120. </div>
  121. </div>
  122. </div>
  123. </div>
  124. </xpath>
  125. </field>
  126. </record>
  127. <record id="hr_timesheet_config_settings_action" model="ir.actions.act_window">
  128. <field name="name">Settings</field>
  129. <field name="type">ir.actions.act_window</field>
  130. <field name="res_model">res.config.settings</field>
  131. <field name="view_mode">form</field>
  132. <field name="target">inline</field>
  133. <field name="context">{'module' : 'hr_timesheet', 'bin_size': False}</field>
  134. </record>
  135. <menuitem id="hr_timesheet_menu_configuration" name="Configuration" parent="timesheet_menu_root"
  136. action="hr_timesheet_config_settings_action" groups="base.group_system" sequence="100"/>
  137. </odoo>