mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[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:
14
web_widget_radio_tree/static/src/xml/widget.xml
Normal file
14
web_widget_radio_tree/static/src/xml/widget.xml
Normal 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>
|
||||
Reference in New Issue
Block a user