mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[MIG] web_widget_image_url: Migration to 12.0.
This commit is contained in:
@@ -4,14 +4,14 @@
|
||||
# License LGPLv3.0 or later (https://www.gnu.org/licenses/lgpl-3.0.en.html).
|
||||
-->
|
||||
<templates xml:space="preserve">
|
||||
<t t-name="FieldImageURL">
|
||||
<span class="oe_form_field oe_form_field_image" t-att-style="widget.attrs.style">
|
||||
<img t-att-src="widget.url()"
|
||||
t-att-border="widget.readonly ? 0 : 1"
|
||||
t-att-name="widget.name"
|
||||
t-att-width="widget.attrs.img_width || widget.attrs.width"
|
||||
t-att-height="widget.attrs.img_height || widget.attrs.height"
|
||||
/>
|
||||
</span>
|
||||
</t>
|
||||
<t t-name="FieldImageURL">
|
||||
<span class="oe_form_field oe_form_field_image" t-att-style="widget.attrs.style">
|
||||
<img t-att-src="widget.url()"
|
||||
t-att-style="(!widget.readonly ? 'border: 0' : 'border: 1')"
|
||||
t-att-name="widget.name"
|
||||
t-att-width="widget.attrs.img_width || widget.attrs.width"
|
||||
t-att-height="widget.attrs.img_height || widget.attrs.height"
|
||||
/>
|
||||
</span>
|
||||
</t>
|
||||
</templates>
|
||||
|
||||
Reference in New Issue
Block a user