From 022cdaaabb1dd255eb15d6cc0a1f9e91228b5974 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Wed, 8 Jun 2016 09:42:12 +0200 Subject: [PATCH] [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 --- addons/web/static/src/less/views.less | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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; }