diff options
| author | Jeremy Kersten <jke@odoo.com> | 2018-03-16 12:20:22 +0100 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2018-03-19 18:57:59 +0100 |
| commit | 2feda047b7bde0e90c7312f15672f2b2c0eb8df7 (patch) | |
| tree | c88795ca29f4a4b6a09688452e16cb24e9647b9a | |
| parent | d2d74232b9ca1a4ad0cd1da5f23baa209e57bd08 (diff) | |
[FIX] base, web: replace t-field-options with t-options
add context in log to identify easily the template that use old synthx
| -rw-r--r-- | addons/web/views/report_templates.xml | 2 | ||||
| -rw-r--r-- | odoo/addons/base/models/ir_qweb.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/views/report_templates.xml b/addons/web/views/report_templates.xml index f6a79d48d77..6c8b8b1ab06 100644 --- a/addons/web/views/report_templates.xml +++ b/addons/web/views/report_templates.xml @@ -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> diff --git a/odoo/addons/base/models/ir_qweb.py b/odoo/addons/base/models/ir_qweb.py index c011ead81b8..0b582d519ec 100644 --- a/odoo/addons/base/models/ir_qweb.py +++ b/odoo/addons/base/models/ir_qweb.py @@ -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) |
