Skip to content

Commit abf568e

Browse files
Joseph ArmasDeriman-Alonso
Joseph Armas
authored andcommitted
[FIX] animal: Fixed formatting and conventions
1 parent 471d414 commit abf568e

File tree

4 files changed

+34
-38
lines changed

4 files changed

+34
-38
lines changed

animal/__init__.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
# Copyright (C) 2020 Open Source Integrators
2-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
31
from . import models

animal/__manifest__.py

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"views/animal.xml",
2323
"views/menu.xml",
2424
],
25-
"demo": [],
2625
"application": True,
2726
"development_status": "Beta",
2827
"maintainers": ["max3903"],

animal/models/__init__.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# Copyright (C) 2020 Open Source Integrators
2-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
31
from . import (
42
animal_species,
53
animal_breed,

animal/views/animal.xml

+34-33
Original file line numberDiff line numberDiff line change
@@ -80,51 +80,54 @@
8080
<field name="model">animal</field>
8181
<field name="arch" type="xml">
8282
<kanban class="o_res_partner_kanban">
83-
<field name="id" />
84-
<field name="image" />
85-
<field name="name" />
86-
<templates>
87-
<t t-name="kanban-box">
88-
<div
83+
<field name="id" />
84+
<field name="image" />
85+
<field name="name" />
86+
<templates>
87+
<t t-name="kanban-box">
88+
<div
8989
class="oe_kanban_global_click o_kanban_record_has_image_fill o_res_partner_kanban"
9090
>
91-
<t t-if="record.image.raw_value">
92-
<img
91+
<t t-if="record.image.raw_value">
92+
<img
9393
class="o_kanban_image"
9494
t-att-src="kanban_image('animal', 'image', record.id.raw_value)"
9595
t-att-alt="record.name"
9696
/>
97-
</t>
98-
<t t-else="">
99-
<img
97+
</t>
98+
<t t-else="">
99+
<img
100100
class="o_kanban_image"
101101
alt="Avatar"
102102
t-att-src='_s + "/animal/static/img/avatar.png"'
103103
/>
104-
</t>
105-
<div class="oe_kanban_details">
106-
<strong
104+
</t>
105+
<div class="oe_kanban_details">
106+
<strong
107107
class="o_kanban_record_title oe_partner_heading"
108-
><field name="display_name" /></strong>
109-
<div
108+
>
109+
<field name="display_name" />
110+
</strong>
111+
<div
110112
class="o_kanban_tags_section oe_kanban_partner_categories"
111113
/>
112-
<ul>
113-
<li t-if="record.gender.raw_value"><field
114-
name="gender"
115-
/></li>
116-
<li
114+
<ul>
115+
<li t-if="record.gender.raw_value">
116+
<field name="gender" />
117+
</li>
118+
<li
117119
t-if="record.species_id.raw_value and record.breed_id.raw_value"
118-
><field name="breed_id" />, <field
119-
name="species_id"
120-
/></li>
121-
</ul>
122-
<div class="oe_kanban_partner_links" />
123-
</div>
120+
>
121+
<field name="breed_id" />
122+
<field name="species_id" />
123+
</li>
124+
</ul>
125+
<div class="oe_kanban_partner_links" />
124126
</div>
125-
</t>
126-
</templates>
127-
</kanban>
127+
</div>
128+
</t>
129+
</templates>
130+
</kanban>
128131
</field>
129132
</record>
130133

@@ -207,9 +210,7 @@
207210
<field name="view_mode">kanban,tree,form</field>
208211
<field name="search_view_id" ref="view_animal_search" />
209212
<field name="help" type="html">
210-
<p class="o_view_nocontent_smiling_face">
211-
Create an animal.
212-
</p>
213+
<p class="o_view_nocontent_smiling_face">Create an animal</p>
213214
</field>
214215
</record>
215216
</data>

0 commit comments

Comments
 (0)