You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
1.2 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <templates>
  3. <t t-name="FieldColor">
  4. <span t-att-class="'oe_form_field '+widget.widget_class" t-att-style="widget.node.attrs.style">
  5. <t t-if="!widget.get('effective_readonly')">
  6. <input type="text"
  7. t-att-id="widget.id_for_label"
  8. t-att-tabindex="widget.node.attrs.tabindex"
  9. t-att-autofocus="widget.node.attrs.autofocus"
  10. t-att-placeholder="widget.node.attrs.placeholder"
  11. t-att-maxlength="widget.field.size"
  12. class="color {hash:true, required:false}"
  13. />
  14. </t>
  15. <t t-if="widget.get('effective_readonly')">
  16. <div/>
  17. <span class="oe_form_char_content"></span>
  18. </t>
  19. </span>
  20. </t>
  21. <tr t-extend="ListView.row">
  22. <t t-jquery="t td t" t-operation="replace"><t t-if="column.widget =='color' || column.type == 'color'"><div class="color_box" t-att-style="'background-color:' + render_cell(record, column)"/></t><t t-raw="render_cell(record, column)"/></t>
  23. </tr>
  24. </templates>