summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorMitesh Savani <msa@openerp.com>2015-01-12 12:42:25 +0100
committerThibault Delavallée <tde@openerp.com>2015-01-12 14:33:07 +0100
commit9162b9930c332651d3a9b6bba8f22604a48f4246 (patch)
tree933c39637a1ea00ecfa706460d4d4c0df2f9b3a8 /addons/web/static/src/xml/base.xml
parent5bb6f7e0f6b4ea189ff18f3a8dcd221c394a830e (diff)
[ADD][IMP] web: added toogle button for form view. Like already
done in list view, this is a button used for boolean fields used to switch between pending-grey-false and done-green-true. hr_holidays: use this newly-introduced button on form view. I am sure HR people will love R&D now. Courtesy of RD India: Mitesh Savani (msa@odoo.com) Reviewed by Use Merge: Thibault Delavallée (tde@odoo.com)
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 3fc96aa610d..cee3bcd936b 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -2020,5 +2020,9 @@
<img t-attf-src="#{prefix}/web/static/src/img/icons/#{widget.icon}.png"
t-att-alt="widget.string"/>
</button>
+<button t-name="FieldToggleBoolean" type="button"
+ t-att-title="widget.string" class="oe_toggle_button">
+ <img t-attf-src="#{_s}/web/static/src/img/icons/#{widget.icon}" t-att-alt="widget.string"/>
+</button>
</templates>