diff options
| author | Martin Geubelle <mge@odoo.com> | 2015-05-12 13:29:29 +0200 |
|---|---|---|
| committer | Martin Geubelle <mge@odoo.com> | 2015-05-12 18:00:08 +0200 |
| commit | 0aa5bb7ada9a32ca632c74c85a8d69a236bef740 (patch) | |
| tree | 4b410b008e66309f01e98cfb479201b6423967a4 /addons/hr/static/src | |
| parent | edd7e9b6872b014c57f74c4fd460f1dc972af4b4 (diff) | |
[ADD] hr, hr_*: new dashboard view for hr departments
Diffstat (limited to 'addons/hr/static/src')
| -rw-r--r-- | addons/hr/static/src/js/hr.js | 10 | ||||
| -rw-r--r-- | addons/hr/static/src/less/hr_dashboard.less | 7 | ||||
| -rw-r--r-- | addons/hr/static/src/less/hr_department.less | 11 |
3 files changed, 7 insertions, 21 deletions
diff --git a/addons/hr/static/src/js/hr.js b/addons/hr/static/src/js/hr.js index 60c5af11688..9fda01cef95 100644 --- a/addons/hr/static/src/js/hr.js +++ b/addons/hr/static/src/js/hr.js @@ -3,16 +3,6 @@ odoo.define('hr.hr', function(require) { var common = require('web_kanban.common'); -common.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_dashboard.less b/addons/hr/static/src/less/hr_dashboard.less new file mode 100644 index 00000000000..0e9f5ecfc70 --- /dev/null +++ b/addons/hr/static/src/less/hr_dashboard.less @@ -0,0 +1,7 @@ +.o_hr_kanban { + .oe_kanban_record { + max-width: 500px !important; + min-width: 400px !important; + min-height: 200px !important; + } +}
\ No newline at end of file diff --git a/addons/hr/static/src/less/hr_department.less b/addons/hr/static/src/less/hr_department.less deleted file mode 100644 index 7f6b3bb0214..00000000000 --- a/addons/hr/static/src/less/hr_department.less +++ /dev/null @@ -1,11 +0,0 @@ -.openerp { - .oe_kanban_view .oe_kanban_department { - width: 365px; - .container{ - width: inherit; - } - .oe_kanban_content div:first-child{ - margin-right: 0px - } - } -} |
