summaryrefslogtreecommitdiff
path: root/addons/hr/static/src
AgeCommit message (Collapse)Author
2019-03-06[REF] hr: adapt code after jQuery updateVincent Schippefilt
Part of task 1896658 Co-authored-by: Aaron Bohy <aab@odoo.com> Co-authored-by: Christophe Matthieu <chm@odoo.com> Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com> Co-authored-by: David Monjoie <dmo@odoo.com> Co-authored-by: Martin Geubelle <mge@odoo.com> Co-authored-by: svs-odoo <svs@odoo.com> Co-authored-by: Vincent Schippefilt <vsc@odoo.com>
2019-02-14[IMP] hr_*: introduce the employee profileLucas Lefèvre
General Purpose =============== We want an 'Employee profile' gathering every data about an employee. The main form view is modified to become this employee profile. A user can also see his own profile through the Preferences menu. The new profile replaces the current Preferences view if the hr module is installed and the current user is linked to an employee. A user should be able to see and edit his own profile. *Problem*: Many fields on hr.employee are protected by groups="hr.group_hr_user". Therefore, a regular user cannot see or edit those fields. This protection must be bypassed to allow read/write access to the regular user's own data. A similar mechanism already exists for res.users (for Preferences) The better (least worst) solution found is to reuse this mechanism by adding related fields on res.users. Pros: - Don't change security access on hr.employee - Don't implement yet another custom security layer, risking to add new security breaches - A lot of fields are added by other modules on hr.employee. It would have required to integrate them with the custom security layer. - Fields added by other modules on the user's preferences view (normal view, not the profile) are automatically included in the employee's profile view. - Allow the hr.employee form view to be different than the user profile accessible through the Preferences menu. E.g. add custom buttons only relevant to the logged in user such as "Request a leave". Cons: - Each field from hr.employee that you want to appear on its profile must be added as a related field on res.users - Those related fields must be added to user's preferences view (duplicate views) - They also must be added to SELF_[READABLE | WRITABLE]_FIELDS Note: When the front-end loads the views it gets the list of available fields for the user (according to its access rights). Later, when the front-end wants to populate the view with data, it only asks to read those available fields. However, in this case, we want the user to be able to read/write its own data, even if they are protected by groups (groups are kept on the related fields on res.users). The front-end need to be made aware of those fields by sending all field definitions. hr_attendance ============= This commit integrate attendance in the new employee profile. It also adds a stat button to this employee profile showing the number of hours worked last month. Remove the boolean computed field 'manual_attendance'. This field is just a shortcut to add/remove the employee's user in the "Manual Attendance" group. The checkbox is confusing on the employee's form and this should be done through the normal group management screens. hr_presence =========== Display the presence status on the employee kanban template. The status is a colored chip which can be green (present), orange (to define) or red (absent). Currently, the presence status is only computed when accessing the report view. As this commits displays it on the employee kanban, it should be updated more frequently. The state should not be updated every time the kanban view is loaded since the computation is a bit heavy. Instead: add a cron to update status every 15 minutes. -> The status is accurate on the report view (status is still updated when loading the view) -> The status in accurate at 15 minutes on the kanban view [ADD] hr_attendance_presence ============================ Bridge module between hr_attendance and hr_presence. This commit integrates hr_presence module in the employee profile and adds the presence status on the employee kanban view. But hr_attendance adds at the same place a similar status icon for checkin/checkout. This bridge module makes the status from hr_presence invisible as hr_attendance should be the main presence control mechanism. Also, this commit adds the ability (through a new setting option) for hr_presence to take into account checkin/checkout to determine the presence status. l10n_be_hr_payroll ================== integration with employee profile
2018-04-18[REF] *: rename all LESS files to SCSSqsm-odoo
This is a simple renaming without adaptation.
2015-09-02[IMP/FIX] *: Kanban dashboard LESS layoutqsm-odoo
* Fix alignement/layout problems since the reintroduction of bootstrap grid gutter. * Fix mobile layout problems. * Fix various Firefox problems. * Use odoo variables and simplify LESS. * Use input type="text" instead of input without type.
2015-08-20[FIX] web_kanban + others: kanban record two columns layoutqsm-odoo
* Remove use of flex for kanban record layout (text overflow ellipsis could not work in row wrap flex layout as flex would prefer to wrap its elements than add an ellipsis inside its content) * Fix xml templates (double use of o_kanban_image + non-existing class)
2015-08-06[IMP] hr: improve hr_employee kanban viewMartin Geubelle
Mainly fixes for the follow button and move css to less
2015-07-09[REM] mail, hr: removed suggested groups / suggested employees feature.Thibault Delavallée
Removed fields and code related to the display of groups and employee suggestions. This impacts notably the model of res.users in mail and hr.
2015-06-15[IMP] hr: update some templates to new designGéry Debongnie
2015-06-15[FIX] various: update some js modules to new kanbanGéry Debongnie
The kanban view has been split in various files, and js modules using them need to correctly import the classes.
2015-06-08[IMP] updated icon classes which are renamed in font-awesome v4.2 and ↵Pankaj Joshi
removed useless icon-* classes of old font-awesome
2015-05-22[IMP] hr, hr_*, project, sale, sales_team, stock: in dashboards, add color ↵Martin Geubelle
picker, add domains on reports and style improvements
2015-05-21[IMP][ADD] mail, various: timeline view.Valerie Pirenne
This commit introduces a new view type, the timeline view. This view is intended to display messages like the previous chatter. This is now a view like the form or list view. Like other views it will be possible to have custom templates for some specific needs, allowing customization. [IMP] mail: the value tracking is modified. Previously messages were created containing the modified values. Those values are now stored, using a new model mail.tracking.value. The message body is dynamically build based on the values. Tests have been updated. This version is temporary. Indeed two main modifications will come in a short future : - the new design will improve the display - the slack mode will change the way the Inbox and notifications are managed All glory to the Hypnotoad. Special thanks to Valerie Pirenne (vpi), Jerome Maes (jem) and Richat Mathot (rim) that did not code but said a lot of things. Martin Trigaux (mat) did nothing, a bit like for the slides modules, but he is busy sending emails.
2015-05-12[ADD] hr, hr_*: new dashboard view for hr departmentsMartin Geubelle
2015-03-18[IMP] web+addons: improvement to module systemGéry Debongnie
The module system needs to know the dependencies of a given module before executing the function. This is why the dependencies were defined once in an array, and then were described one more times in the call to require. But a trick can simplify this: the boot function can parse the string representation of the module and extract the calls to require from it. It is more work for the processor, but it leads to simpler module definitions.
2015-03-18[REF] hr: update to the new module systemGéry Debongnie
2015-03-02[MERGE] forward port of branch saas-6 up to fefb298Christophe Simonis
2015-02-26[FIX] hr: employee kanban alignment styleJérome Maes
2015-02-25[IMP] hr_department: new kanban view for HR Departments.dka-odoo
hr add a simple kanban view that is updated by the various hr modules. Each module adds statistics and links in the kanban vignette, either in a to do or to approve column. The department kanban view can be seen as a small dashboard to have the main data about the department displayed. Links allow the HR manager to be redirected towards the various things to do or to approve in its department.
2015-01-21[IMP] Replace all oe_e class by fontawesome + remove entyporegular libraryYannick Tivisse
2014-12-24[FIX] hr: fixed issue in employee image display in the kanban viewThibault Delavallée
especially when using the group-by. Added a missing 'row', used an img-responsible class instead of a fixed width.
2014-11-17[MERGE] forward port of branch 8.0 up to c92e70bChristophe Simonis
2014-11-14[MERGE] forward port of branch saas-3 up to 7ab4137Denis Ledoux
2014-11-12[IMP] *: kanban custom CSS removalrba-odoo
2014-11-06[FIX] hr,mail: correct remove of suggestions.Christophe Simonis
2014-10-13[FIX] incorrect qweb interpolationsXavier Morel
unnecessary, worked by accident and broken by change to interpolation regex in 35f5fb46
2014-05-27[MERGE] Forward-port of latest 7.0 bugfixes, up to aeaa826Olivier Dony
2014-05-23Restore missed images during bzr to git transitionMartin Trigaux
2014-05-23[IMP] missing fileFabien Pinckaers
2014-05-23[FIX] Missing fileFabien Pinckaers
2013-07-02[MERGE] sync with trunkMartin Trigaux
bzr revid: mat@openerp.com-20130702095014-boktf79ocopibi0t
2013-06-28[IMP] move html module description and iconAntony Lesuisse
bzr revid: al@openerp.com-20130628100441-swpanf2jwcojygh4
2013-06-21[MERGE] sync with latest trunkMartin Trigaux
bzr revid: mat@openerp.com-20130621075406-d9syftu04k8iytcz
2013-05-15[CLEAN] [REF] mail, hr: cleaned JS/CSS/XML code for suggestion widgets. ↵Thibault Delavallée
Those are now 2 widgets extending web.Widget, included inside a Sidebar widget. bzr revid: tde@openerp.com-20130515103518-2djzogjdtjh0n7rl
2013-04-03[ADD] option to globally stop showing employeep suggestionsMartin Trigaux
bzr revid: mat@openerp.com-20130403152443-3jqg0v182mcqsk0f
2013-04-03[ADD] option to globally stop showing group suggestionsMartin Trigaux
bzr revid: mat@openerp.com-20130403151056-4vjno2k9n77drm6y
2013-04-03[IMP] better templatesMartin Trigaux
bzr revid: mat@openerp.com-20130403143243-e0bysy0sqy90i2io
2013-04-03[ADD] suggestions for employees to followMartin Trigaux
bzr revid: mat@openerp.com-20130403142716-lmsz9hwkg7tathly
2013-03-20[ADD] additions from trunk-hr-goal-matMartin Trigaux
bzr revid: mat@openerp.com-20130320111520-fmz14if4k400s9s4
2013-03-11[IMP] better follow buttonsMartin Trigaux
bzr revid: mat@openerp.com-20130311164829-vd8wuwh1657s0vjt
2012-11-26[IMP] CSS fixFabien Pinckaers
bzr revid: fp@tinyerp.com-20121126203154-ubkwzc1cpgur4nyf
2012-11-22[FIX] css hr employeeFabien Pinckaers
bzr revid: fp@openerp.com-20121121230513-5qtw1ci29sz07a5x
2012-10-23[IMP] Improved code the kanban image which cuts from upper side.Paramjit Singh Sahota
bzr revid: psa@tinyerp.com-20121023060126-k6m0o0bfk9gnqf2s
2012-10-10[IMP]Improved code for the kanban css of HR.Paramjit Singh Sahota
bzr revid: psa@tinyerp.com-20121010063335-n7n0j6cytjinavxs
2012-09-20[FIX] made things more to my taste in hr and chatter's cssFrédéric van der Essen
bzr revid: fva@openerp.com-20120920154645-lctwfo0tbaxsobwg
2012-09-06[FIX] ul liAntony Lesuisse
bzr revid: al@openerp.com-20120906175616-0bpm1yhb5rrsi44u
2012-09-06[FIX] remove semantic part2Antony Lesuisse
bzr revid: al@openerp.com-20120906104624-sq3cd652vevmij6c
2012-07-30[MOV] hr: hr.png now icon.png, to be used in module kanban view.Thibault Delavallée
bzr revid: tde@openerp.com-20120730141034-nyb8qcixcd72rdja
2011-12-23Added an icon to the HR moduleMinh Tran
bzr revid: mit@openerp.com-20111223152935-cta0qlc2kt7g079h
2011-12-16Added a div around employee vignette to control paddingMinh Tran
bzr revid: mit@openerp.com-20111216161433-dg1quduz0v2tgwbo
2011-12-13[IMP] Added some fields and wide images now resize correctlyMinh Tran
bzr revid: mit@openerp.com-20111213142329-42f4h5tto0mf6dqi