web_boolean_button ported from Odoo 12.0 CE

This commit is contained in:
Sergei Ruzki
2021-02-15 14:46:56 +01:00
committed by Tom Blauwendraat
parent d10acbacef
commit d5c11bed9d
11 changed files with 990 additions and 0 deletions

View 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)

View File

@@ -0,0 +1 @@
This module adds 'boolean_button' widget to 13.0 as it was in 12.0

View File

@@ -0,0 +1 @@
Ported from 12.0 to 13.0

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