summaryrefslogtreecommitdiff
path: root/addons/web/static/src/css
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2015-04-07 15:26:09 +0200
committerAaron Bohy <aab@odoo.com>2015-04-08 10:48:50 +0200
commitd1056939ad1f3cae70813780a4c084adfd609a89 (patch)
tree82a99ceef22fa0f311c8a64be1abfb53e617cf2d /addons/web/static/src/css
parent2661a6c0cdaddb646e4053725074769712648f17 (diff)
[FIX] Web: pager for ListView in One2Many fields
The pager was not displayed in One2Many List views. This fix applies the same behavior as in One2Many Kanban views, which is probably not the best way to do it, but which works fine. The issue was caused by 2 things: - The One2Many.FormView template removes the condition around the buttons/pager divs of the FormView template. However, it was using a selector that does not seem to be used anymore. We thus removed it and the buttons/pager divs are now in the rendered One2Many List View - The rendered pager was appended to this.options.$pager whereas it should be appended to the corresponding div in its own template. This commit should not be forwardported
Diffstat (limited to 'addons/web/static/src/css')
-rw-r--r--addons/web/static/src/css/base.css6
-rw-r--r--addons/web/static/src/css/base.sass3
2 files changed, 8 insertions, 1 deletions
diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css
index a6108809c9b..42141bab7fd 100644
--- a/addons/web/static/src/css/base.css
+++ b/addons/web/static/src/css/base.css
@@ -541,7 +541,7 @@
background-image: -webkit-radial-gradient(circle, #eee 0%, #ccc 40%, #bbb 100%);
background-image: -moz-radial-gradient(#eee 0%, #ccc 40%, #bbb 100%);
background-image: -ms-radial-gradient(#eee 0%, #ccc 40%, #bbb 100%);
- background-image: radial-gradient(circle, #eee 0%, #ccc 40%, #bbb 100%);
+ background-image: radial-gradient(circle, #eeeeee 0%, #cccccc 40%, #bbbbbb 100%);
}
.openerp .oe_kanban_status_green {
background: green;
@@ -2337,6 +2337,9 @@
.openerp .oe_form .oe_form_field_one2many > .oe_view_manager .oe_list_pager_single_page {
display: none;
}
+.openerp .oe_form .oe_form_field_one2many > .oe-view-manager .oe_list_pager {
+ float: right;
+}
.openerp .oe_form_field_one2many > .oe_view_manager .oe_list_pager_single_page, .openerp .oe_form_field_many2many > .oe_view_manager .oe_list_pager_single_page {
display: none !important;
}
@@ -2592,6 +2595,7 @@
opacity: 0.5;
}
.openerp .oe_list_content > tbody > tr > td.oe_list_field_boolean input:-moz-read-only {
+ filter: alpha(opacity=100);
opacity: 1;
}
.openerp .oe_list_content > tbody > tr:nth-child(odd) {
diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass
index 738a1719c34..975ac8d9402 100644
--- a/addons/web/static/src/css/base.sass
+++ b/addons/web/static/src/css/base.sass
@@ -1915,6 +1915,9 @@ $sheet-padding: 16px
.oe_form .oe_form_field_one2many > .oe_view_manager
.oe_list_pager_single_page
display: none
+ .oe_form .oe_form_field_one2many > .oe-view-manager
+ .oe_list_pager
+ float: right
.oe_form_field_one2many,.oe_form_field_many2many
// TODO: oe_form_field_one2many_list?
> .oe_view_manager