summaryrefslogtreecommitdiff
path: root/addons/resource/models/__init__.py
AgeCommit message (Collapse)Author
2017-04-28[FIX] Various P3-related import changesxmo-odoo
* LDAP import: python-ldap is not python3-compatible, pyldap is Warning: only supported from debian Stretch (current testing)? https://packages.debian.org/search?searchon=names&keywords=pyldap * implicitly relative imports * imports of moved or removed stdlib modules issue #8530
2017-02-27[IMP] resource: add resource mixin adding fields and an API for resourceThibault Delavallée
Purpose is to replace existing inherits of resource.resource by an inherit on the mixin itself. The mixin offers several methods to compute working intervals, attendance, hours, ... This mixin will be improved in future commits when new methods that will be required with future improvements of various service apps. This commit also adds tests for the mixin itself. A new model is defined only for testing purpose to test the mixin.
2017-01-18[REF] resource: strengthen link between companies and calendarsThibault Delavallée
Purpose of this commit is to always have a default calendar for each company and ensure it is correctly set on resources. Some cleaning is also performed in resource models to remove unused fields, improve labels and make views a bit more odoo-ish. * [REF] res_company: add a m2o to the default calendar to use in the company as well as a o2m linking all resource calendars used in the company. Some code has been added to correctly update existing companies when installing the module; * [REF] resource_calendar * [REM] manager field on resource.calendar: this field is never used and is not necessary anyway * [ADD] global_leave_ids: filter leaves on a calendar to see global company leaves * [IMP] better default company / calendar computation to ensure there is always a calendar attached to a resource * [IMP] improve resource and calendar views in order to look more like other odoo views
2016-07-13[MOV] resource: Organized/renamed files as per new api guidelines.Ravi Gohil