summaryrefslogtreecommitdiff
path: root/addons/hr/static/src
diff options
context:
space:
mode:
authordka-odoo <dka@openerp.com>2015-01-20 13:53:07 +0100
committerJérome Maes <jem@openerp.com>2015-02-25 11:25:40 +0100
commitd27910a8f2f2b29810dfa8022ad748cce64df00a (patch)
tree52776525b58ddb4d4c1b01ac63f2d0ac9e411b99 /addons/hr/static/src
parente5875acc6aa19ca0a41ea1b4be9081bfd674005e (diff)
[IMP] hr_department: new kanban view for HR Departments.
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.
Diffstat (limited to 'addons/hr/static/src')
-rw-r--r--addons/hr/static/src/js/hr.js14
-rw-r--r--addons/hr/static/src/less/hr_department.less11
2 files changed, 25 insertions, 0 deletions
diff --git a/addons/hr/static/src/js/hr.js b/addons/hr/static/src/js/hr.js
new file mode 100644
index 00000000000..90e37bd35b8
--- /dev/null
+++ b/addons/hr/static/src/js/hr.js
@@ -0,0 +1,14 @@
+openerp.hr = function(openerp) {
+ "use strict";
+
+ openerp.web_kanban.KanbanRecord.include({
+ on_card_clicked: function() {
+ if (this.view.dataset.model === 'hr.department') {
+ this.$('.oe_kanban_department .oe_kanban_content a').first().click();
+ } else {
+ this._super.apply(this, arguments);
+ }
+ },
+ });
+
+};
diff --git a/addons/hr/static/src/less/hr_department.less b/addons/hr/static/src/less/hr_department.less
new file mode 100644
index 00000000000..7f6b3bb0214
--- /dev/null
+++ b/addons/hr/static/src/less/hr_department.less
@@ -0,0 +1,11 @@
+.openerp {
+ .oe_kanban_view .oe_kanban_department {
+ width: 365px;
+ .container{
+ width: inherit;
+ }
+ .oe_kanban_content div:first-child{
+ margin-right: 0px
+ }
+ }
+}