diff options
| author | Christophe Matthieu <chm@odoo.com> | 2016-05-03 14:05:47 +0200 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2016-06-14 09:46:26 +0200 |
| commit | 710a7cee14dcacdc54e783678b647a2730be3462 (patch) | |
| tree | 506e83bd3a662a0b0ec2f54a6ee5958de6e41f74 /addons/web/static/src/xml/base.xml | |
| parent | d159aec83d3c0ae07699db808451771231abe989 (diff) | |
[FIX] website: t-att-*** display empty string attribute
Remove attribute only if the result is False or None
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 9be26781e99..1b373d5fd50 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -234,7 +234,7 @@ <t t-esc="section.label"/> <span class="caret"/> </button> <t t-if="section.name == 'buttons'" t-foreach="widget.items[section.name]" t-as="item" t-att-class="item.classname"> - <a t-att-title="item.title or ''" t-att-data-section="section.name" t-att-data-index="item_index" t-att-href="item.url" target="_blank"> + <a t-att-title="item.title or None" t-att-data-section="section.name" t-att-data-index="item_index" t-att-href="item.url" target="_blank"> <t t-raw="item.label"/> </a> </t> @@ -256,7 +256,7 @@ <t t-raw="item.write_uid[1] + ' ' + item.write_date"/> </t> </t> - <a t-att-title="item.title or ''" t-att-data-section="section.name" t-att-data-index="item_index" t-att-href="item.url"> + <a t-att-title="item.title or None" t-att-data-section="section.name" t-att-data-index="item_index" t-att-href="item.url"> <t t-raw="item.label"/> <span t-if="section.name == 'files' and widget.options.editable and !item.callback" class="fa fa-trash-o o_sidebar_delete_attachment" t-att-data-id="item.id" title="Delete this attachment"/> </a> |
