~openerp-dev/openerp-web/7.0-opw-602858ReadonlyFieldsInEditableListview-msh

« back to all changes in this revision

Viewing changes to addons/web/static/src/css/base.sass

  • Committer: Mohammed Shekha
  • Date: 2014-05-12 05:38:27 UTC
  • mfrom: (4162.1.1 7.0)
  • Revision ID: msh@tinyerp.com-20140512053827-26y42a90rr2zddjq
[FIX]Web: Re-Fixed the issue of readonly field not displayed which creates issue with onchange result, result of onchange doesn't diplayed untill editable row is saved, the reason is we kept readonly field invisible in edition form and that's why that readonly field widget doesn't positioned as the place edition form and simple cell is displayed, onchange result calls set_value but value is set on hidden element which is not displayed on edition form, also considered some other scenarios like many2one throws after setting field to visible so checked if many2one field is effective_readonly, also span in current row should not be displayed in edition mode,also fixed the issues of form view which sets dimension even in readonly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2218
2218
    .oe_list_editable .oe_list_content td.oe_list_field_cell
2219
2219
        padding: 4px 6px 3px
2220
2220
    .oe_list.oe_list_editable.oe_editing
2221
 
        .oe_edition .oe_list_field_cell:not(.oe_readonly)
 
2221
        .oe_edition .oe_list_field_cell
2222
2222
            *
2223
2223
                visibility: hidden
2224
2224
            color: transparent
2230
2230
        .oe_input_icon
2231
2231
            margin-top: 5px
2232
2232
        .oe_form_field
 
2233
            &.oe_list_field_handle
 
2234
                @include text-to-entypo-icon("}",#E0E0E0,18px)
 
2235
                letter-spacing: normal !important
 
2236
                color: transparent
 
2237
                margin-right: 7px
 
2238
            &.oe_readonly
 
2239
                padding: 4px 6px 3px
 
2240
                text-align: left
2233
2241
            min-width: 0
2234
2242
            max-width: none
2235
2243
            input, textarea
2240
2248
            input, textarea, select
2241
2249
                min-width: 0
2242
2250
            &.oe_form_field_float,&.oe_form_view_integer
 
2251
                &.oe_readonly
 
2252
                    padding: 4px 6px 3px 0px
 
2253
                    text-align: right !important
2243
2254
                input
2244
2255
                    text-align: right
2245
2256
                    width: 100% !important