css - 在 Odoo10 中选中复选框时,复选框轮廓消失

标签 css checkbox treeview odoo odoo-10

需要根据 TreeView 中的条件永久地向复选框添加轮廓,通过添加轮廓样式和轮廓颜色作为复选框轮廓中的样式显示如下

enter image description here

但是当点击复选框轮廓消失。 还添加了自定义 CSS

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

最佳答案

我找到了一些可能对你有帮助的例子

在 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>

在我们的自定义 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;
   }

关于css - 在 Odoo10 中选中复选框时,复选框轮廓消失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58908010/

相关文章:

css - 如何扩展我的左容器

jquery - 鼠标悬停时背景颜色不动画

javascript - 将 CheckBoxes 变成 CheckButtons

checkbox - 在网格列 ExtJs 中的一行中显示一组复选框

android - 如何在 Android ListView 中处理带有复选框的 ListView 项的单击事件?

python - GTK/ python : How to get key-press-event to edit and navigate a TreeView cell?

javascript - Kendoui TreeView 展开清除选中的节点

css - 为什么我的 Div 标签被推到左边几个像素?

css - 为什么我们在 CSS 中没有//注释?

c# - 在 ScrollView 中滚动到选定的 Treeviewitem