From c56491b11bc399247a595a2e08bbc940d2be3746 Mon Sep 17 00:00:00 2001 From: Dharmang Soni Date: Mon, 9 Apr 2018 12:18:56 +0200 Subject: [PATCH] [IMP] note: pimp note form view Purpose is to maximize size of editor to focus more on the note content edition. --- addons/note/static/src/less/note.less | 19 ++++++++++++++----- addons/note/views/note_views.xml | 6 ++---- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/addons/note/static/src/less/note.less b/addons/note/static/src/less/note.less index 99038b491c2..c92c5cd0500 100644 --- a/addons/note/static/src/less/note.less +++ b/addons/note/static/src/less/note.less @@ -3,14 +3,23 @@ text-decoration: line-through; } -.openerp .oe_form { - .oe_pad.oe_memo { - width: auto; +.o_note_form_view.o_form_view { + .o_form_statusbar { + margin-bottom: 0; } .oe_form_field.oe_memo { - margin: 0; + margin: 0 (@padding-large-horizontal * -1); padding: 0; - width: 100%; min-height: 200px; + + .note-editor { + border: none; + } + } + &.o_form_readonly { + .oe_memo { + padding: @padding-large-horizontal; + border-bottom: 1px solid @legend-border-color; + } } } diff --git a/addons/note/views/note_views.xml b/addons/note/views/note_views.xml index 0ac37d8bf46..f14912d4d68 100644 --- a/addons/note/views/note_views.xml +++ b/addons/note/views/note_views.xml @@ -154,12 +154,10 @@
+
- - - - +