mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
web_boolean_button ported from Odoo 12.0 CE
This commit is contained in:
committed by
Tom Blauwendraat
parent
d10acbacef
commit
d5c11bed9d
3
web_boolean_button/readme/CONTRIBUTORS.rst
Normal file
3
web_boolean_button/readme/CONTRIBUTORS.rst
Normal file
@@ -0,0 +1,3 @@
|
||||
* `Odoo S.A. <https://www.odoo.com>`_
|
||||
* `Odoo Community Association (OCA) <https://odoo-community.org>`_
|
||||
* Sergei Ruzki <sergei.ruzki@gmail.com> (Bigdata.BY)
|
||||
1
web_boolean_button/readme/DESCRIPTION.rst
Normal file
1
web_boolean_button/readme/DESCRIPTION.rst
Normal file
@@ -0,0 +1 @@
|
||||
This module adds 'boolean_button' widget to 13.0 as it was in 12.0
|
||||
1
web_boolean_button/readme/ROADMAP.rst
Normal file
1
web_boolean_button/readme/ROADMAP.rst
Normal file
@@ -0,0 +1 @@
|
||||
Ported from 12.0 to 13.0
|
||||
13
web_boolean_button/readme/USAGE.rst
Normal file
13
web_boolean_button/readme/USAGE.rst
Normal file
@@ -0,0 +1,13 @@
|
||||
Go to form and attach widget boolean_button to your boolean field (i.e. in button-box div) with terminology if needed.
|
||||
|
||||
.. code-block:: xml
|
||||
|
||||
<button name="toggle_start" type="object" class="oe_stat_button" icon="fa-archive">
|
||||
<field name="help_button" widget="boolean_button"
|
||||
options="{'terminology': {
|
||||
'string_true': 'ACTIVE',
|
||||
'hover_true': 'PAUSE',
|
||||
'string_false': 'HELP',
|
||||
'hover_false': 'FINISH'
|
||||
}}"/>
|
||||
</button>
|
||||
Reference in New Issue
Block a user