Skip to content

Commit

Permalink
[FIX] animal: Fix default image in animal.xml view
Browse files Browse the repository at this point in the history
  • Loading branch information
santiagordz committed Jun 20, 2024
1 parent 298962b commit 4de3d43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion animal/models/animal.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class Animal(models.Model):
_name = "animal"
_description = "Animal"
_inherit = ["mail.thread", "mail.activity.mixin"]
_inherit = ["mail.thread", "mail.activity.mixin", "image.mixin"]
_order = "name"

name = fields.Char()
Expand Down
5 changes: 3 additions & 2 deletions animal/views/animal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@
<t t-else="">
<img
class="o_kanban_image"
alt="Avatar"
t-att-src='_s + "/animal/static/img/avatar.png"'
t-att-src="'/animal/static/img/avatar.png'"
t-att-alt="Avatar"
/>
</t>
<div class="oe_kanban_details">
Expand All @@ -119,6 +119,7 @@
t-if="record.species_id.raw_value and record.breed_id.raw_value"
>
<field name="breed_id" />
<span>, </span>
<field name="species_id" />
</li>
</ul>
Expand Down

0 comments on commit 4de3d43

Please sign in to comment.