[FIX] base, web: replace t-field-options with t-options

add context in log to identify easily the template that use old synthx
This commit is contained in:
Jeremy Kersten
2018-03-19 18:57:59 +01:00
parent d2d74232b9
commit 2feda047b7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -148,7 +148,7 @@
<strong t-field="company.partner_id.name"/>
</div>
<span t-field="company.partner_id"
t-field-options='{"widget": "contact", "fields": ["address"], "no_marker": true}'/>
t-options='{"widget": "contact", "fields": ["address"], "no_marker": true}'/>
</div>
<div class="clearfix mb8"/>
</div>
+1 -1
View File
@@ -162,7 +162,7 @@ class IrQWeb(models.AbstractModel, QWeb):
if ('t-%s-options' % directive_type) in el.attrib:
if tools.config['dev_mode']:
_logger.warning("Use new syntax t-options instead of t-%s-options" % directive_type)
_logger.warning("Use new syntax t-options instead of t-%s-options for '%s'" % (directive_type, etree.tostring(el)))
if not field_options:
field_options = el.attrib.pop('t-%s-options' % directive_type)