Browse Source

[FIX] animal: Fixed formatting and conventions

14.0
Joseph Armas 4 years ago
parent
commit
e13dba7209
  1. 2
      animal/__init__.py
  2. 1
      animal/__manifest__.py
  3. 2
      animal/models/__init__.py
  4. 21
      animal/views/animal.xml

2
animal/__init__.py

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

1
animal/__manifest__.py

@ -22,7 +22,6 @@
"views/animal.xml",
"views/menu.xml",
],
"demo": [],
"application": True,
"development_status": "Beta",
"maintainers": ["max3903"],

2
animal/models/__init__.py

@ -1,5 +1,3 @@
# Copyright (C) 2020 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import (
animal_species,
animal_breed,

21
animal/views/animal.xml

@ -105,19 +105,22 @@
<div class="oe_kanban_details">
<strong
class="o_kanban_record_title oe_partner_heading"
><field name="display_name" /></strong>
>
<field name="display_name" />
</strong>
<div
class="o_kanban_tags_section oe_kanban_partner_categories"
/>
<ul>
<li t-if="record.gender.raw_value"><field
name="gender"
/></li>
<li t-if="record.gender.raw_value">
<field name="gender" />
</li>
<li
t-if="record.species_id.raw_value and record.breed_id.raw_value"
><field name="breed_id" />, <field
name="species_id"
/></li>
>
<field name="breed_id" />
<field name="species_id" />
</li>
</ul>
<div class="oe_kanban_partner_links" />
</div>
@ -207,9 +210,7 @@
<field name="view_mode">kanban,tree,form</field>
<field name="search_view_id" ref="view_animal_search" />
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create an animal.
</p>
<p class="o_view_nocontent_smiling_face">Create an animal</p>
</field>
</record>
</data>

Loading…
Cancel
Save