简体   繁体   中英

Check box outline disappears when checkbox is selected in Odoo10

Need to add outline to checkbox permanently based on condition in tree view, By adding outline style and outline color as style in checkbox outline appears like this

在此处输入图像描述

but when clicked on checkbox outline disappears. Also added custom CSS

input[type="checkbox"]:focus {
 background: red !important;
 outline:0px auto red !important;
} 

I found some example this may help you

In the account.invoice_form view:

  <group class="oe_subtotal_footer oe_right  invoice-residual-view">
        <field  name="residual" groups="account.group_account_user" 
            widget="monetary" options="{'currency_field': 'currency_id'}"/>
  </group>

In our custom styles.css:

  .invoice-residual-view {
      font-size: 24px;
      color: #154734;  !important;
      border: 3px solid #009A44;
      font-weight: bold;
   }
      .openerp .oe_form .oe_subtotal_footer.invoice-residual-view 
      td.oe_form_group_cell {
      vertical-align: middle;
      padding: 3px 6px 3px 3px !important;
   }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM