summaryrefslogtreecommitdiff
path: root/addons/resource/views
diff options
context:
space:
mode:
authorRomainLibert <rli@odoo.com>2018-01-26 15:59:23 +0100
committerRomainLibert <rli@odoo.com>2018-02-05 14:45:42 +0100
commitbb02b93c3a18b5580f5c3d1378c817bdc86df863 (patch)
tree23c37e3ad824430cd7087d57db28a48f19d752e2 /addons/resource/views
parentb9c8394247ca3b6a65ddaf20b96c4e95577675c7 (diff)
[IMP] resource: timezone support for global leaves
Purpose ======= We should add some real timezone support for the global leaves (resource.calendar.leaves without a resource assigned) currently it is declared in UTC and never changed to the user or employee timezone. Specification ============= In order to support this, we have to add some choices for the user defining the global leave. He can specify how the timezone is configured, - no value is specified, we keep the dates in UTC then convert those to user timezone - current user timezone specified, we set the timezone of the leave to the company timezone - a timezone is specified, we keep this specific timezone
Diffstat (limited to 'addons/resource/views')
-rw-r--r--addons/resource/views/resource_views.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/resource/views/resource_views.xml b/addons/resource/views/resource_views.xml
index c7c2855b6bb..dda1c55e11f 100644
--- a/addons/resource/views/resource_views.xml
+++ b/addons/resource/views/resource_views.xml
@@ -208,7 +208,7 @@
<field name="dayofweek"/>
<label for="hour_from" string="Hours"/>
<div>
- <field name="hour_from" widget="float_time" class="oe_inline"/> -
+ <field name="hour_from" widget="float_time" class="oe_inline"/> -
<field name="hour_to" widget="float_time" class="oe_inline"/>
</div>
</group>
@@ -261,6 +261,7 @@
<field name="name"/>
<field name="date_from"/>
<field name="date_to"/>
+ <field name="tz"/>
</tree>
</field>
</page>