diff options
| author | Jigar Patel <jat@openerp.com> | 2017-05-09 15:02:17 +0530 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2017-08-09 15:11:53 +0200 |
| commit | 2adc9d50321d58fa7f33a0231a5594d338a3ffa4 (patch) | |
| tree | 5ed676b1be7eb33ce50120825550dd091e087ae9 /addons/web/static/src/less/fields.less | |
| parent | dd427405e2f1683a1b46d5fba1d271e77ea34e93 (diff) | |
[IMP] account: Add a new boolean_favorite widget
Purpose
=======
Projects and soon sales teams have a manual "favorite" button that calls a toggle_favorite method
It should actually be a widget on a boolean field
Specifications
==============
Develop a favorite widget for kanban view that allows to toggle a boolean field
Probably update boolean field to allow inverse method on it
Functionally nothing changed.
Diffstat (limited to 'addons/web/static/src/less/fields.less')
| -rw-r--r-- | addons/web/static/src/less/fields.less | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/addons/web/static/src/less/fields.less b/addons/web/static/src/less/fields.less index 02885ef3514..8463dd312cc 100644 --- a/addons/web/static/src/less/fields.less +++ b/addons/web/static/src/less/fields.less @@ -180,6 +180,22 @@ } } + // Favorite + &.o_favorite { + i.fa { + font-size: 16px; + } + i.fa-star-o { + color: @odoo-main-color-muted; + &:hover { + color: gold; + } + } + i.fa-star { + color: gold; + } + } + // Specific success color for toggle_button widget .fa.o_toggle_button_success { color: @brand-success; |
