Merge lp:~numerigraphe-team/openerp-addons/7.0-hide-oe_view_only into lp:ocb-web

Proposed by Lionel Sausin - Initiatives/Numérigraphe
Status: Superseded
Proposed branch: lp:~numerigraphe-team/openerp-addons/7.0-hide-oe_view_only
Merge into: lp:ocb-web
Diff against target: 13 lines (+2/-1)
1 file modified
addons/web/static/src/css/base.css (+2/-1)
To merge this branch: bzr merge lp:~numerigraphe-team/openerp-addons/7.0-hide-oe_view_only
Reviewer Review Type Date Requested Status
Stefan Rijnhart (Opener) Disapprove
Review via email: mp+212957@code.launchpad.net

This proposal has been superseded by a proposal from 2014-03-27.

Description of the change

This patch written by Daniel Hammerschmidt makes the style "oe_view_only" hide contents in "edit mode", in a way similar to "oe_edit_only" hiding them in "view only" mode.
It is not a bugfix but an small improvement, but even though I'm new to the web client code this looks pretty harmless.

This branch runs green on Runbot : http://runbot.openerp.com/numerigraphe-team-7-0-hide-oe-view-only-31943/logs/

To post a comment you must log in.
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Hi Lionel,

this is a good improvement, as I commented on the bug report a year ago. However, if we put this feature in OCB, then we may get community modules depending on this feature, thus on OCB. The general attitude is that that is a bad thing for OCB.

Looks like this change translates into an equally short snippet that can easily be put in a separate community module, or even included in the modules that intend to use this functionality. So I dissapprove of having this in OCB. You may however, check the situation for trunk and propose there on the OpenERP branch so that we can all enjoy this in the next edition.

On a technical level, OpenERP 7.0 css is maintained in the sass file which you find in static/src/css, and then compiled to css. Sass files are compiled using a ruby package by the same name.

review: Disapprove
Revision history for this message
Lionel Sausin - Initiatives/Numérigraphe (ls-initiatives) wrote :

Thanks for your review, it makes perfect sense. I'll move the patch to sass and try to get it adopted upstream.

Unmerged revisions

4166. By Daniel Hammerschmidt

[IMP] Hide oe_view_only style when not in edit mode

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'addons/web/static/src/css/base.css'
2--- addons/web/static/src/css/base.css 2014-02-13 14:57:55 +0000
3+++ addons/web/static/src/css/base.css 2014-03-26 22:06:44 +0000
4@@ -2116,7 +2116,8 @@
5 .openerp .oe_form_invisible {
6 display: none !important;
7 }
8-.openerp .oe_form_readonly .oe_edit_only, .openerp .oe_form_readonly .oe_form_field:empty {
9+.openerp .oe_form_readonly .oe_edit_only, .openerp .oe_form_readonly .oe_form_field:empty,
10+.openerp .oe_form_editable .oe_view_only {
11 display: none !important;
12 }
13 .openerp .oe_form_readonly .oe_form .oe_form_field_date {

Subscribers

People subscribed via source and target branches