Xavier Morel
4a6adff30d
[ADD] resource: work day helpers
...
Add methods to query work days (entire) for resources for systems
working daily insted of hourly.
2016-06-07 17:41:44 +02:00
Christophe Simonis
d1a79ec704
[MERGE] forward port of branch saas-6 up to 9363372
2016-02-17 16:28:56 +01:00
Christophe Simonis
9363372efe
[MERGE] forward port of branch 8.0 up to 0f46e6a
2016-02-17 16:20:23 +01:00
Adrien Peiffer (ACSONE)
b21773456c
[ADD] Add test with half hours to compute working hours.
2016-02-16 17:24:39 +01:00
Christophe Simonis
57168a9e90
[MERGE] forward port of branch saas-6 up to a669433
2015-09-23 14:34:26 +02:00
Christophe Simonis
3fd91d4244
[MERGE] forward port of branch 8.0 up to d05ee26
2015-09-22 15:43:12 +02:00
Christophe Simonis
d05ee26a72
[MERGE] forward port of branch saas-3 up to 24bcdb7
2015-09-22 15:40:28 +02:00
Christophe Simonis
024177ebc4
[FIX] resource: get_working_intervals_of_day
...
Use patch from 8.0 (64e1c28e35 ) instead of
the one from 7.0 (bbd15cdca6 ).
2015-09-11 18:07:49 +02:00
Christophe Simonis
3bb0cb2a50
[MERGE] forward port of branch 8.0 up to 9c8b99a
2015-09-04 18:30:48 +02:00
Goffin Simon
64e1c28e35
[FIX] resource: get_working_intervals_of_day
...
To compute start and end date of a working interval this function replaced
hour in datetime object without taking into account the time zone. The start and end date
taking respectively from calendar_working_day.hour_from and calendar_working_day.hour_to are
in the time zone of the user and the datetime object are compared in UTC to avoid schedule's gap.
This is why the start and end must be converted in UTC after being replaced by these hours.
The tz_info must be removed from dates because it's forbidden to compare naive and aware dates.
opw:648349
2015-09-04 10:01:20 +02:00
Christophe Simonis
044c0625ad
[MERGE] forward port of branch saas-6 up to 7faf72c
2015-08-31 19:57:20 +02:00
Christophe Simonis
7faf72c024
[MERGE] forward port of branch 8.0 up to 0c1e978
2015-08-31 19:25:37 +02:00
Antonio Espinosa
e1d59f8f82
[FIX] resource: Schedule days backwards when days is negative number
...
Regarding _schedule_days, similar thing was done in
saas-6, @ fd5e7f2 .
When the argument `days` was negative, the
returned intervals were wrong.
Regarding `get_working_intervals_of_day`,
calling this method without
`default_interval` and calendar
set crashed.
Closes #8208
2015-08-28 12:33:46 +02:00
Olivier Dony
0bd4545348
[LEGAL] Use global LICENSE/COPYRIGHT files, remove boilerplate text
...
- Preserved explicit 3rd-party copyright notices
- Explicit boilerplate should not be necessary - copyright law applies
automatically in all countries thanks to Berne Convention + WTO rules,
and a reference to the applicable license is clear enough.
2015-06-02 03:16:04 +02:00
Christophe Simonis
18e22be138
[MERGE] forward port of branch 8.0 up to 0aab81c
2015-01-19 17:15:56 +01:00
Xavier Morel
65cd4a2a33
[FIX] remove deprecated checks/fast_suite test attributes from standard modules
2015-01-15 14:31:40 +01:00
Leonardo Donelli
4a0b13ed92
[REF] remove vim modelines and resulting trailing blank lines
...
Let 2015 be a year without modelines!
cf #4174
2014-12-31 15:52:13 +01:00
Josse Colpaert
61a415badd
[IMP] Add group on leave
...
[IMP] interval_remove_leaves everywhere instead of interval_remove_leaves_groups once
[FIX] Add cr, uid in test
2014-12-19 11:08:19 +01:00
Josse Colpaert
fd5e7f20d0
[IMP] Add stock_calendar module and adapt the resource module to contain some necessary changes
...
Update views for date_to on calendars
[IMP] Will add a date_to in the calendar attendance and date_from and date_to should be applied/ check backwards also
[IMP] get_attendance_for_weekday will pass date instead of weekday
[IMP] should assign correct procurements in run
2014-12-19 11:08:00 +01:00
Xavier Morel
642b3a167d
[FIX] resource: py26 compat'
...
bzr revid: xmo@openerp.com-20140128175640-gmeecmwhevhg3oek
2014-01-28 18:56:40 +01:00
Thibault Delavallée
339c2ecc54
[IMP] default_interval also in schedule_hours, allowing to
...
schedule some work with a default calendar, like previous version
of resource module.
bzr revid: tde@openerp.com-20140122142805-8zyntmkx72l10fbq
2014-01-22 15:28:05 +01:00
Thibault Delavallée
9fbbba1ee0
[IMP] resource : some docstrings cleaning + void calendar
...
taken into account in days scheduling + finished yesys
bzr revid: tde@openerp.com-20140122132918-4c1ag6y5gqasi32d
2014-01-22 14:29:18 +01:00
Thibault Delavallée
6e1cb5226b
[IMP] hr_contract: added override of base_action_rule (+ dependency) to add the possibility to use a user-related working scheduling.
...
bzr revid: tde@openerp.com-20130902134200-xvy5hb7lqv2wv0um
2013-09-02 15:42:00 +02:00
Thibault Delavallée
53fe285259
[IMP] resource: old API replacement + first implementation of compute_hours, to compute the number of working hours between two dates.
...
bzr revid: tde@openerp.com-20130830141610-uu1t88atcvpmkjjb
2013-08-30 16:16:10 +02:00
Thibault Delavallée
af79a26a1f
[IMP] resource: overall fix of hours/days computation + scheduling + added tests
...
bzr revid: tde@openerp.com-20130830133250-ixehp7imac0duygd
2013-08-30 15:32:50 +02:00
Thibault Delavallée
a67459018c
[IMP] resource: first refactoring of various methods to calculate timed intervals based on resource.calendar. Added tests.
...
bzr revid: tde@openerp.com-20130821105109-1rtynzx69hmslxey
2013-08-21 12:51:09 +02:00