[FIX] *: raw_value for id
Since the new views, `record.id.value` contains the formatted value of the ID, meaning it can contain separators. For example, by default, `1234 => 1,234`. Since this value is used in the image URL, using `value` won't work anymore.
This commit is contained in:
@@ -126,7 +126,7 @@
|
||||
<t t-name="kanban-box">
|
||||
<div class="oe_kanban_vignette oe_semantic_html_override">
|
||||
<a type="open" href="#" class="oe_kanban_action">
|
||||
<img t-att-src="kanban_image('fleet.vehicle.model.brand', 'image_small', record.id.value)" class="img-responsive" style="width:100px;"/>
|
||||
<img t-att-src="kanban_image('fleet.vehicle.model.brand', 'image_small', record.id.raw_value)" class="img-responsive" style="width:100px;"/>
|
||||
</a>
|
||||
<div class="text-center">
|
||||
<h4 class="oe_partner_heading">
|
||||
|
||||
@@ -183,7 +183,7 @@
|
||||
<field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}"/>
|
||||
</div>
|
||||
<div class="o_kanban_image">
|
||||
<img t-att-src="kanban_image('fleet.vehicle', 'image_small', record.id.value)"/>
|
||||
<img t-att-src="kanban_image('fleet.vehicle', 'image_small', record.id.raw_value)"/>
|
||||
</div>
|
||||
<div class="oe_kanban_details">
|
||||
<strong>
|
||||
@@ -397,4 +397,4 @@
|
||||
|
||||
<menuitem id="fleet_vehicle_tag_menu" parent="fleet_configuration" action="fleet_vehicle_tag_action" sequence="112"/>
|
||||
|
||||
</odoo>
|
||||
</odoo>
|
||||
|
||||
@@ -177,7 +177,7 @@
|
||||
<div class="oe_kanban_global_click">
|
||||
<field name="category_ids" widget="many2many_tags" options="{'color_field': 'color'}"/>
|
||||
<div class="o_kanban_image">
|
||||
<img t-att-src="kanban_image('hr.employee', 'image_medium', record.id.value)"/>
|
||||
<img t-att-src="kanban_image('hr.employee', 'image_medium', record.id.raw_value)"/>
|
||||
<div class="o_employee_summary_icons">
|
||||
<t t-if="record.message_needaction_counter.raw_value">
|
||||
<span class='oe_kanban_mail_new' title='Unread Messages'><i class='fa fa-comments'/><t t-raw="record.message_needaction_counter.raw_value"/></span>
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
<t t-name="kanban-box">
|
||||
<div class="oe_kanban_global_click">
|
||||
<div class="o_kanban_image">
|
||||
<img t-att-src="kanban_image('hr.employee', 'image_medium', record.id.value)"/>
|
||||
<img t-att-src="kanban_image('hr.employee', 'image_medium', record.id.raw_value)"/>
|
||||
</div>
|
||||
<div class="oe_kanban_details">
|
||||
<div id="textbox">
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<t t-name="kanban-box">
|
||||
<div class="oe_kanban_global_click">
|
||||
<div class="o_kanban_image">
|
||||
<img t-att-src="kanban_image('im_livechat.channel', 'image_medium', record.id.value)" class="img-responsive"/>
|
||||
<img t-att-src="kanban_image('im_livechat.channel', 'image_medium', record.id.raw_value)" class="img-responsive"/>
|
||||
</div>
|
||||
<div class="oe_kanban_details">
|
||||
<strong><field name="name"/></strong>
|
||||
@@ -97,7 +97,7 @@
|
||||
<div>
|
||||
<a t-if="! read_only_mode" type="delete" style="position: absolute; right: 0; padding: 4px; diplay: inline-block">X</a>
|
||||
<div class="oe_group_details" style="min-height: 40px">
|
||||
<img t-att-src="kanban_image('res.users', 'image', record.id.value)"
|
||||
<img t-att-src="kanban_image('res.users', 'image', record.id.raw_value)"
|
||||
class="oe_avatar oe_kanban_avatar_smallbox" style="float:left; margin-right: 10px;"/>
|
||||
<h4><field name="name"/></h4>
|
||||
</div>
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
</t>
|
||||
<t t-name="kanban-box">
|
||||
<div class="oe_module_vignette oe_kanban_global_click">
|
||||
<img t-att-src="kanban_image('mail.channel', 'image_medium', record.id.value)" class="oe_module_icon"/>
|
||||
<img t-att-src="kanban_image('mail.channel', 'image_medium', record.id.raw_value)" class="oe_module_icon"/>
|
||||
<div class="oe_module_desc">
|
||||
<h4>#<field name="name"/></h4>
|
||||
<p class="oe_module_name">
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
<div class="oe_kanban_global_click">
|
||||
<t t-set="installed" t-value="!record.module_id.value || (record.module_id.value && record.module_state.raw_value === 'installed')"/>
|
||||
<div class="o_kanban_image">
|
||||
<img type="open" t-att-src="kanban_image('payment.acquirer', 'image_small', record.id.value)"/>
|
||||
<img type="open" t-att-src="kanban_image('payment.acquirer', 'image_small', record.id.raw_value)"/>
|
||||
</div>
|
||||
<div class="o_payment_acquirer_desc">
|
||||
<h3 class="mt4"><t t-esc="record.name.value"/></h3>
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
<t t-name="kanban-box">
|
||||
<div class="oe_kanban_global_click">
|
||||
<div class="o_kanban_image">
|
||||
<img t-att-src="kanban_image('product.template', 'image_small', record.id.value)"/>
|
||||
<img t-att-src="kanban_image('product.template', 'image_small', record.id.raw_value)"/>
|
||||
</div>
|
||||
<div class="oe_kanban_details">
|
||||
<strong>
|
||||
|
||||
@@ -346,7 +346,7 @@
|
||||
<field name="attribute_value_ids" groups="product.group_product_variant"/>
|
||||
</div>
|
||||
<div class="o_kanban_image">
|
||||
<img t-att-src="kanban_image('product.product', 'image_small', record.id.value)"/>
|
||||
<img t-att-src="kanban_image('product.product', 'image_small', record.id.raw_value)"/>
|
||||
</div>
|
||||
<div class="oe_kanban_details">
|
||||
<strong><field name="name"/></strong>
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
<div class="oe_kanban_global_click" style="position: relative">
|
||||
<a t-if="! read_only_mode" type="delete" style="position: absolute; right: 0; padding: 4px; diplay: inline-block">X</a>
|
||||
<div class="oe_module_vignette">
|
||||
<img t-att-src="kanban_image('res.users', 'image_small', record.id.value)" class="oe_avatar oe_kanban_avatar_smallbox"/>
|
||||
<img t-att-src="kanban_image('res.users', 'image_small', record.id.raw_value)" class="oe_avatar oe_kanban_avatar_smallbox"/>
|
||||
<div class="oe_module_desc">
|
||||
<field name="name"/>
|
||||
</div>
|
||||
|
||||
@@ -382,7 +382,7 @@
|
||||
<div class="o_kanban_tags_section oe_kanban_partner_categories"/>
|
||||
<div class="o_kanban_image">
|
||||
<t t-if="record.image_small.raw_value">
|
||||
<img t-att-src="kanban_image('res.partner', 'image_small', record.id.value)"/>
|
||||
<img t-att-src="kanban_image('res.partner', 'image_small', record.id.raw_value)"/>
|
||||
</t>
|
||||
<t t-if="!record.image_small.raw_value">
|
||||
<t t-if="record.type.raw_value === 'delivery'">
|
||||
|
||||
Reference in New Issue
Block a user