diff options
| author | Martin Geubelle <mge@odoo.com> | 2017-10-19 12:00:50 +0200 |
|---|---|---|
| committer | Martin Geubelle <mge@odoo.com> | 2017-10-20 11:04:08 +0200 |
| commit | 1312ee72cf35e3887721ac56472f1188f636ec61 (patch) | |
| tree | 9958185c32904705d8a092acf7fab8dfc1ef40ba /addons/web/static/src/xml/base.xml | |
| parent | 0fc6fe8653952b359aa16f79eb22129217dbd101 (diff) | |
[FIX] web: correctly render the field image
Before this commit, the image was directly built without using the corresponding
template, which set some properties on the image (class, width, etc.).
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 a397e8c148d..d14c1f008fd 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -836,8 +836,8 @@ t-att-src='url' t-att-border="widget.readonly ? 0 : 1" t-att-name="widget.name" - t-att-width="widget.node.attrs.img_width || widget.node.attrs.width" - t-att-height="widget.node.attrs.img_height || widget.node.attrs.height"/> + t-att-width="widget.nodeOptions.size ? widget.nodeOptions.size[0] : widget.attrs.img_width || widget.attrs.width" + t-att-height="widget.nodeOptions.size ? widget.nodeOptions.size[1] : widget.attrs.img_height || widget.attrs.height"/> </t> <t t-name="FieldBinaryFile"> <a t-if="widget.mode === 'readonly'" href="javascript:void(0)" class="o_form_uri"/> |
