[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:
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user