summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2016-06-08 09:42:12 +0200
committerAaron Bohy <aab@odoo.com>2016-06-16 12:03:01 +0200
commit022cdaaabb1dd255eb15d6cc0a1f9e91228b5974 (patch)
treee44ed3c579fddb1ae3fc4e491b69af3a77e3139d /addons/web/static/src
parentdda0d3d62d23cae3013db32bcb6322a2574f0162 (diff)
[FIX] web: nocontent_helper style
Correctly hide the 'create' part of the helper if the user can't create Ensure that a's and span's are inline
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/less/views.less14
1 files changed, 13 insertions, 1 deletions
diff --git a/addons/web/static/src/less/views.less b/addons/web/static/src/less/views.less
index 7a4deca60ff..eb6d60de25c 100644
--- a/addons/web/static/src/less/views.less
+++ b/addons/web/static/src/less/views.less
@@ -67,6 +67,18 @@
}
// No content helper
-.oe_view.oe_cannot_create .oe_view_nocontent_create {
+.oe_view_nocontent {
+ a {
+ cursor: pointer;
+ }
+ span, a {
+ display: inline!important;
+ }
+}
+// Hide view_nocontent in x2many fields
+.o_form_field .oe_view_nocontent {
+ display: none;
+}
+.o_cannot_create .oe_view_nocontent_create {
display: none;
}