summaryrefslogtreecommitdiff
path: root/doc/reference
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2017-01-23 14:01:27 +0100
committerThibault Delavallée <tde@odoo.com>2017-02-27 14:04:48 +0100
commitff32384b8ffd1abc3ab4ba12114feddc32ba1bf9 (patch)
tree788f840d4580f2d2a748e9e5b580cb8d0f96be85 /doc/reference
parentac26fa3dd428786f7b1057980d0aee155c74a0f6 (diff)
[REF] resource: correctly take into account timezones and clean code
Currently timezones were not or incorrectly taken into account in resource computation. Indeed complexity comes from attendances being expressed in naive timezones valid for all users, whereas dates and leaves are computed into UTC. Computation should always be done in user timezone so that there are no overlapping days and all time intervals are correctly computed. A new timezone field is added on leaves to know in which timezone they were originally encoded. Indeed putting them in naive user timezone require its original timezone, not the current user timezone, as those can be different. This commit also contains code cleaning in resource to be a bit more pythonic, simplify method parameters and offer a more simple api to other modules. Eventually code field is removed on resource as it is not really necessary for resources. It is explicitly added on workcenter model who use it.
Diffstat (limited to 'doc/reference')
0 files changed, 0 insertions, 0 deletions