[ADD] web_widget_radio_tree: widget to use input radio in a tree view inside a form, in order to allow mark only one record

This commit is contained in:
Cesar Lage
2016-05-04 03:38:13 -04:00
parent 7680811cbc
commit 8cf5ba3073
6 changed files with 248 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates>
<t t-name="RadioTree">
<span class="oe_form_field oe_form_field_boolean oe_form_field_boolean_radio"
t-att-style="widget.node.attrs.style">
<input type="radio"
t-att-id="widget.id_for_label"
t-att-name="widget.name"
t-att-tabindex="widget.node.attrs.tabindex"
t-att-autofocus="widget.node.attrs.autofocus"
class="field_boolean"/>
</span>
</t>
</templates>