Browse Source

Merge PR #1074 into 14.0

Signed-off-by NL66278
14.0
OCA-git-bot 4 years ago
parent
commit
3b7007f772
  1. 1
      README.md
  2. 90
      animal/README.rst
  3. 1
      animal/__init__.py
  4. 28
      animal/__manifest__.py
  5. 25
      animal/data/animal.breed.csv
  6. 2
      animal/data/animal.color.csv
  7. 4
      animal/data/animal.species.csv
  8. 2
      animal/data/ir.module.category.csv
  9. 565
      animal/i18n/animal.pot
  10. 579
      animal/i18n/es.po
  11. 6
      animal/models/__init__.py
  12. 42
      animal/models/animal.py
  13. 12
      animal/models/animal_breed.py
  14. 14
      animal/models/animal_color.py
  15. 12
      animal/models/animal_species.py
  16. 3
      animal/readme/CONTRIBUTORS.rst
  17. 1
      animal/readme/DESCRIPTION.rst
  18. 3
      animal/readme/USAGE.rst
  19. 8
      animal/security/ir.model.access.csv
  20. 13
      animal/security/res_groups.xml
  21. BIN
      animal/static/description/icon.png
  22. 433
      animal/static/description/index.html
  23. BIN
      animal/static/img/avatar.png
  24. 217
      animal/views/animal.xml
  25. 52
      animal/views/animal_breed.xml
  26. 54
      animal/views/animal_color.xml
  27. 53
      animal/views/animal_species.xml
  28. 50
      animal/views/menu.xml
  29. 1
      setup/animal/odoo/addons/animal
  30. 6
      setup/animal/setup.py

1
README.md

@ -19,6 +19,7 @@ Available addons
----------------
addon | version | summary
--- | --- | ---
[animal](animal/) | 14.0.1.0.0 | Animal
[base_country_state_translatable](base_country_state_translatable/) | 14.0.1.0.0 | Translate Country States
[base_location](base_location/) | 14.0.1.0.1 | Enhanced zip/npa management system
[base_location_geonames_import](base_location_geonames_import/) | 14.0.1.0.0 | Import zip entries from Geonames

90
animal/README.rst

@ -0,0 +1,90 @@
======
Animal
======
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github
:target: https://github.com/OCA/partner-contact/tree/14.0/animal
:alt: OCA/partner-contact
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/partner-contact-14-0/partner-contact-14-0-animal
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/134/14.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
This module allows you to store animal information.
**Table of contents**
.. contents::
:local:
Usage
=====
* Go to Animals
* Create an animal by entering his name and selecting his gender, species, breed and
color.
Bug Tracker
===========
Bugs are tracked on `GitHub Issues <https://github.com/OCA/partner-contact/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/partner-contact/issues/new?body=module:%20animal%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues.
Credits
=======
Authors
~~~~~~~
* Open Source Integrators
Contributors
~~~~~~~~~~~~
* Open Source Integrators <https://www.opensourceintegrators.com>
* Maxime Chambreuil <mchambreuil@opensourceintegrators.com>
Maintainers
~~~~~~~~~~~
This module is maintained by the OCA.
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
.. |maintainer-max3903| image:: https://github.com/max3903.png?size=40px
:target: https://github.com/max3903
:alt: max3903
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|maintainer-max3903|
This module is part of the `OCA/partner-contact <https://github.com/OCA/partner-contact/tree/14.0/animal>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

1
animal/__init__.py

@ -0,0 +1 @@
from . import models

28
animal/__manifest__.py

@ -0,0 +1,28 @@
# Copyright (C) 2020 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Animal",
"version": "14.0.1.0.0",
"license": "AGPL-3",
"summary": "Manage animals information",
"author": "Open Source Integrators, Odoo Community Association (OCA)",
"maintainer": "Open Source Integrators",
"website": "https://github.com/OCA/partner-contact",
"depends": ["mail"],
"data": [
"data/ir.module.category.csv",
"data/animal.species.csv",
"data/animal.breed.csv",
"data/animal.color.csv",
"security/res_groups.xml",
"security/ir.model.access.csv",
"views/animal_color.xml",
"views/animal_breed.xml",
"views/animal_species.xml",
"views/animal.xml",
"views/menu.xml",
],
"application": True,
"development_status": "Beta",
"maintainers": ["max3903"],
}

25
animal/data/animal.breed.csv

@ -0,0 +1,25 @@
id,name,species_id/id
beagle,Beagle,animal.dog
boxer,Boxer,animal.dog
bull_terrier,Bull Terrier,animal.dog
bulldog,Bulldog,animal.dog
chihuahua,Chihuahua,animal.dog
cocker,Cocker,animal.dog
collie,Collie,animal.dog
dalmatian,Dalmatian,animal.dog
dachshund,Dachshund,animal.dog
doberman,Doberman,animal.dog
english_cocker_spaniel,English Cocker Spaniel,animal.dog
french_bulldog,French Bulldog,animal.dog
german_shepard,German Shepard,animal.dog
golden_retriever,Golden Retriever,animal.dog
great_dane,Great Dane,animal.dog
jack_russell,Jack Russell,animal.dog
labrador,Labrador,animal.dog
pomeranian,Pomeranian,animal.dog
pug,Pug,animal.dog
rottweiler,Rottweiler,animal.dog
schnauzer,Schnauzer,animal.dog
shih_tzu,Shih Tzu,animal.dog
siberian_husky,Siberian Husky,animal.dog
yorkshire_terrier,Yorkshire Terrier,animal.dog

2
animal/data/animal.color.csv

@ -0,0 +1,2 @@
id,name,breed_id/id
salt,Salt and pepper,animal.schnauzer

4
animal/data/animal.species.csv

@ -0,0 +1,4 @@
id,name
bird,Bird
cat,Cat
dog,Dog

2
animal/data/ir.module.category.csv

@ -0,0 +1,2 @@
id,name,sequence
animal,Animal,30

565
animal/i18n/animal.pot

@ -0,0 +1,565 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * animal
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__message_needaction
msgid "Action Needed"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__active
msgid "Active"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__activity_ids
msgid "Activities"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__activity_state
msgid "Activity State"
msgstr ""
#. module: animal
#: model:ir.model,name:animal.model_animal
#: model:ir.module.category,name:animal.animal
#: model_terms:ir.ui.view,arch_db:animal.view_animal_form
msgid "Animal"
msgstr ""
#. module: animal
#: model:ir.model,name:animal.model_animal_breed
msgid "Animal Breeds"
msgstr ""
#. module: animal
#: model:ir.model,name:animal.model_animal_color
msgid "Animal Colors"
msgstr ""
#. module: animal
#: model:ir.model,name:animal.model_animal_species
msgid "Animal Species"
msgstr ""
#. module: animal
#: model:ir.actions.act_window,name:animal.action_animal
#: model:ir.ui.menu,name:animal.root
#: model_terms:ir.ui.view,arch_db:animal.view_animal_search
#: model_terms:ir.ui.view,arch_db:animal.view_animal_tree
msgid "Animals"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__message_attachment_count
msgid "Attachment Count"
msgstr ""
#. module: animal
#: model_terms:ir.ui.view,arch_db:animal.view_animal_kanban
msgid "Avatar"
msgstr ""
#. module: animal
#: model:animal.breed,name:animal.beagle
msgid "Beagle"
msgstr ""
#. module: animal
#: model:animal.species,name:animal.bird
msgid "Bird"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__birth_date
msgid "Birth Date"
msgstr ""
#. module: animal
#: model:animal.breed,name:animal.boxer
msgid "Boxer"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__breed_id
#: model:ir.model.fields,field_description:animal.field_animal_color__breed_id
#: model_terms:ir.ui.view,arch_db:animal.view_animal_breed_form
#: model_terms:ir.ui.view,arch_db:animal.view_animal_search
msgid "Breed"
msgstr ""
#. module: animal
#: model:ir.actions.act_window,name:animal.action_animal_breed
#: model:ir.model.fields,field_description:animal.field_animal_species__breed_ids
#: model:ir.ui.menu,name:animal.breed
#: model_terms:ir.ui.view,arch_db:animal.view_animal_breed_tree
#: model_terms:ir.ui.view,arch_db:animal.view_animal_species_form
msgid "Breeds"
msgstr ""
#. module: animal
#: model:animal.breed,name:animal.bull_terrier
msgid "Bull Terrier"
msgstr ""
#. module: animal
#: model:animal.breed,name:animal.bulldog
msgid "Bulldog"
msgstr ""
#. module: animal
#: model:animal.species,name:animal.cat
msgid "Cat"
msgstr ""
#. module: animal
#: model:animal.breed,name:animal.chihuahua
msgid "Chihuahua"
msgstr ""
#. module: animal
#: model:animal.breed,name:animal.cocker
msgid "Cocker"
msgstr ""
#. module: animal
#: model:animal.breed,name:animal.collie
msgid "Collie"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__color_id
#: model_terms:ir.ui.view,arch_db:animal.view_animal_color_form
#: model_terms:ir.ui.view,arch_db:animal.view_animal_search
msgid "Color"
msgstr ""
#. module: animal
#: model:ir.actions.act_window,name:animal.action_animal_color
#: model:ir.ui.menu,name:animal.color
msgid "Colors"
msgstr ""
#. module: animal
#: model:ir.ui.menu,name:animal.config
msgid "Configuration"
msgstr ""
#. module: animal
#: model_terms:ir.actions.act_window,help:animal.action_animal_breed
msgid "Create a breed."
msgstr ""
#. module: animal
#: model_terms:ir.actions.act_window,help:animal.action_animal_color
msgid "Create a color."
msgstr ""
#. module: animal
#: model_terms:ir.actions.act_window,help:animal.action_animal_species
msgid "Create a species."
msgstr ""
#. module: animal
#: model_terms:ir.actions.act_window,help:animal.action_animal
msgid "Create an animal."
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__create_uid
#: model:ir.model.fields,field_description:animal.field_animal_breed__create_uid
#: model:ir.model.fields,field_description:animal.field_animal_color__create_uid
#: model:ir.model.fields,field_description:animal.field_animal_species__create_uid
msgid "Created by"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__create_date
#: model:ir.model.fields,field_description:animal.field_animal_breed__create_date
#: model:ir.model.fields,field_description:animal.field_animal_color__create_date
#: model:ir.model.fields,field_description:animal.field_animal_species__create_date
msgid "Created on"
msgstr ""
#. module: animal
#: model:animal.breed,name:animal.dachshund
msgid "Dachshund"
msgstr ""
#. module: animal
#: model:animal.breed,name:animal.dalmatian
msgid "Dalmatian"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__display_name
#: model:ir.model.fields,field_description:animal.field_animal_breed__display_name
#: model:ir.model.fields,field_description:animal.field_animal_color__display_name
#: model:ir.model.fields,field_description:animal.field_animal_species__display_name
msgid "Display Name"
msgstr ""
#. module: animal
#: model:animal.breed,name:animal.doberman
msgid "Doberman"
msgstr ""
#. module: animal
#: model:animal.species,name:animal.dog
msgid "Dog"
msgstr ""
#. module: animal
#: model:animal.breed,name:animal.english_cocker_spaniel
msgid "English Cocker Spaniel"
msgstr ""
#. module: animal
#: selection:animal,gender:0
#: model_terms:ir.ui.view,arch_db:animal.view_animal_search
msgid "Female"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__message_follower_ids
msgid "Followers"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__message_channel_ids
msgid "Followers (Channels)"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__message_partner_ids
msgid "Followers (Partners)"
msgstr ""
#. module: animal
#: model:animal.breed,name:animal.french_bulldog
msgid "French Bulldog"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__gender
#: model_terms:ir.ui.view,arch_db:animal.view_animal_search
msgid "Gender"
msgstr ""
#. module: animal
#: model:animal.breed,name:animal.german_shepard
msgid "German Shepard"
msgstr ""
#. module: animal
#: model:animal.breed,name:animal.golden_retriever
msgid "Golden Retriever"
msgstr ""
#. module: animal
#: model:animal.breed,name:animal.great_dane
msgid "Great Dane"
msgstr ""
#. module: animal
#: model_terms:ir.ui.view,arch_db:animal.view_animal_search
msgid "Group By"
msgstr ""
#. module: animal
#: selection:animal,gender:0
#: model_terms:ir.ui.view,arch_db:animal.view_animal_search
msgid "Hermaphrodite"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__id
#: model:ir.model.fields,field_description:animal.field_animal_breed__id
#: model:ir.model.fields,field_description:animal.field_animal_color__id
#: model:ir.model.fields,field_description:animal.field_animal_species__id
msgid "ID"
msgstr ""
#. module: animal
#: model:ir.model.fields,help:animal.field_animal__message_unread
msgid "If checked new messages require your attention."
msgstr ""
#. module: animal
#: model:ir.model.fields,help:animal.field_animal__message_needaction
msgid "If checked, new messages require your attention."
msgstr ""
#. module: animal
#: model:ir.model.fields,help:animal.field_animal__message_has_error
msgid "If checked, some messages have a delivery error."
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__image
msgid "Image"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__message_is_follower
msgid "Is Follower"
msgstr ""
#. module: animal
#: model:animal.breed,name:animal.jack_russell
msgid "Jack Russell"
msgstr ""
#. module: animal
#: model:animal.breed,name:animal.labrador
msgid "Labrador"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal____last_update
#: model:ir.model.fields,field_description:animal.field_animal_breed____last_update
#: model:ir.model.fields,field_description:animal.field_animal_color____last_update
#: model:ir.model.fields,field_description:animal.field_animal_species____last_update
msgid "Last Modified on"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__write_uid
#: model:ir.model.fields,field_description:animal.field_animal_breed__write_uid
#: model:ir.model.fields,field_description:animal.field_animal_color__write_uid
#: model:ir.model.fields,field_description:animal.field_animal_species__write_uid
msgid "Last Updated by"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__write_date
#: model:ir.model.fields,field_description:animal.field_animal_breed__write_date
#: model:ir.model.fields,field_description:animal.field_animal_color__write_date
#: model:ir.model.fields,field_description:animal.field_animal_species__write_date
msgid "Last Updated on"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__message_main_attachment_id
msgid "Main Attachment"
msgstr ""
#. module: animal
#: selection:animal,gender:0
#: model_terms:ir.ui.view,arch_db:animal.view_animal_search
msgid "Male"
msgstr ""
#. module: animal
#: model:res.groups,name:animal.group_animal_manager
msgid "Manager"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__message_has_error
msgid "Message Delivery error"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__message_ids
msgid "Messages"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__name
#: model:ir.model.fields,field_description:animal.field_animal_breed__name
#: model:ir.model.fields,field_description:animal.field_animal_color__name
#: model:ir.model.fields,field_description:animal.field_animal_species__name
#: model_terms:ir.ui.view,arch_db:animal.view_animal_search
msgid "Name"
msgstr ""
#. module: animal
#: selection:animal,gender:0
#: model_terms:ir.ui.view,arch_db:animal.view_animal_search
msgid "Neutered"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__activity_date_deadline
msgid "Next Activity Deadline"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__activity_summary
msgid "Next Activity Summary"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__activity_type_id
msgid "Next Activity Type"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__message_needaction_counter
msgid "Number of Actions"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__message_has_error_counter
msgid "Number of error"
msgstr ""
#. module: animal
#: model:ir.model.fields,help:animal.field_animal__message_needaction_counter
msgid "Number of messages which requires an action"
msgstr ""
#. module: animal
#: model:ir.model.fields,help:animal.field_animal__message_has_error_counter
msgid "Number of messages with delivery error"
msgstr ""
#. module: animal
#: model:ir.model.fields,help:animal.field_animal__message_unread_counter
msgid "Number of unread messages"
msgstr ""
#. module: animal
#: selection:animal,activity_state:0
msgid "Overdue"
msgstr ""
#. module: animal
#: selection:animal,activity_state:0
msgid "Planned"
msgstr ""
#. module: animal
#: model:animal.breed,name:animal.pomeranian
msgid "Pomeranian"
msgstr ""
#. module: animal
#: model:animal.breed,name:animal.pug
msgid "Pug"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__ref
msgid "Reference"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__activity_user_id
msgid "Responsible User"
msgstr ""
#. module: animal
#: model:animal.breed,name:animal.rottweiler
msgid "Rottweiler"
msgstr ""
#. module: animal
#: model:animal.color,name:animal.salt
msgid "Salt and pepper"
msgstr ""
#. module: animal
#: model:animal.breed,name:animal.schnauzer
msgid "Schnauzer"
msgstr ""
#. module: animal
#: model:ir.ui.menu,name:animal.settings
msgid "Settings"
msgstr ""
#. module: animal
#: model:animal.breed,name:animal.shih_tzu
msgid "Shih Tzu"
msgstr ""
#. module: animal
#: model:animal.breed,name:animal.siberian_husky
msgid "Siberian Husky"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__size
msgid "Size"
msgstr ""
#. module: animal
#: model:ir.actions.act_window,name:animal.action_animal_species
#: model:ir.model.fields,field_description:animal.field_animal__species_id
#: model:ir.model.fields,field_description:animal.field_animal_breed__species_id
#: model:ir.model.fields,field_description:animal.field_animal_color__species_id
#: model:ir.ui.menu,name:animal.species
#: model_terms:ir.ui.view,arch_db:animal.view_animal_search
#: model_terms:ir.ui.view,arch_db:animal.view_animal_species_form
#: model_terms:ir.ui.view,arch_db:animal.view_animal_species_tree
msgid "Species"
msgstr ""
#. module: animal
#: model:ir.model.fields,help:animal.field_animal__activity_state
msgid "Status based on activities\n"
"Overdue: Due date is already passed\n"
"Today: Activity date is today\n"
"Planned: Future activities."
msgstr ""
#. module: animal
#: model:ir.model.fields,help:animal.field_animal__image
msgid "This field holds the photo of the animal."
msgstr ""
#. module: animal
#: selection:animal,activity_state:0
msgid "Today"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__message_unread
msgid "Unread Messages"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__message_unread_counter
msgid "Unread Messages Counter"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__website_message_ids
msgid "Website Messages"
msgstr ""
#. module: animal
#: model:ir.model.fields,help:animal.field_animal__website_message_ids
msgid "Website communication history"
msgstr ""
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__weight
msgid "Weight (in kg)"
msgstr ""
#. module: animal
#: model:animal.breed,name:animal.yorkshire_terrier
msgid "Yorkshire Terrier"
msgstr ""
#. module: animal
#: model_terms:ir.ui.view,arch_db:animal.view_animal_color_tree
msgid "colors"
msgstr ""

579
animal/i18n/es.po

@ -0,0 +1,579 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * animal
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-03-09 21:15+0000\n"
"PO-Revision-Date: 2021-03-09 21:35+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: \n"
"Language: es\n"
"X-Generator: Poedit 2.4.2\n"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__message_needaction
msgid "Action Needed"
msgstr "Acción requerida"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__active
msgid "Active"
msgstr "Activo"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__activity_ids
msgid "Activities"
msgstr "Actividades"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__activity_exception_decoration
msgid "Activity Exception Decoration"
msgstr "Decoración de excepción de actividad"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__activity_state
msgid "Activity State"
msgstr "Estado de la actividad"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__activity_type_icon
msgid "Activity Type Icon"
msgstr "Icono de tipo de actividad"
#. module: animal
#: model:ir.model,name:animal.model_animal
#: model_terms:ir.ui.view,arch_db:animal.view_animal_form
msgid "Animal"
msgstr "Animal"
#. module: animal
#: model:ir.model,name:animal.model_animal_breed
msgid "Animal Breeds"
msgstr "Razas"
#. module: animal
#: model:ir.model,name:animal.model_animal_color
msgid "Animal Colors"
msgstr "Colores"
#. module: animal
#: model:ir.model,name:animal.model_animal_species
msgid "Animal Species"
msgstr "Especies"
#. module: animal
#: model:ir.actions.act_window,name:animal.action_animal
#: model:ir.ui.menu,name:animal.animal model:ir.ui.menu,name:animal.root
#: model_terms:ir.ui.view,arch_db:animal.view_animal_search
#: model_terms:ir.ui.view,arch_db:animal.view_animal_tree
msgid "Animals"
msgstr "Animales"
#. module: animal
#: model_terms:ir.ui.view,arch_db:animal.view_animal_form
#: model_terms:ir.ui.view,arch_db:animal.view_animal_search
msgid "Archived"
msgstr "Archivado"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__message_attachment_count
msgid "Attachment Count"
msgstr "Número de archivos"
#. module: animal
#: model_terms:ir.ui.view,arch_db:animal.view_animal_kanban
msgid "Avatar"
msgstr "Avatar"
#. module: animal
#: model:animal.breed,name:animal.beagle
msgid "Beagle"
msgstr "Beagle"
#. module: animal
#: model:animal.species,name:animal.bird
msgid "Bird"
msgstr "Pájaro"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__birth_date
msgid "Birth Date"
msgstr "Fecha de nacimiento"
#. module: animal
#: model:animal.breed,name:animal.boxer
msgid "Boxer"
msgstr "Boxer"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__breed_id
#: model:ir.model.fields,field_description:animal.field_animal_color__breed_id
#: model_terms:ir.ui.view,arch_db:animal.view_animal_breed_form
#: model_terms:ir.ui.view,arch_db:animal.view_animal_search
msgid "Breed"
msgstr "Raza"
#. module: animal
#: model:ir.actions.act_window,name:animal.action_animal_breed
#: model:ir.model.fields,field_description:animal.field_animal_species__breed_ids
#: model:ir.ui.menu,name:animal.breed
#: model_terms:ir.ui.view,arch_db:animal.view_animal_breed_tree
#: model_terms:ir.ui.view,arch_db:animal.view_animal_species_form
msgid "Breeds"
msgstr "Razas"
#. module: animal
#: model:animal.breed,name:animal.bull_terrier
msgid "Bull Terrier"
msgstr "Bull Terrier"
#. module: animal
#: model:animal.breed,name:animal.bulldog
msgid "Bulldog"
msgstr "Bulldog"
#. module: animal
#: model:animal.species,name:animal.cat
msgid "Cat"
msgstr "Gato"
#. module: animal
#: model:animal.breed,name:animal.chihuahua
msgid "Chihuahua"
msgstr "Chihuahua"
#. module: animal
#: model:animal.breed,name:animal.cocker
msgid "Cocker"
msgstr "Cocker"
#. module: animal
#: model:animal.breed,name:animal.collie
msgid "Collie"
msgstr "Collie"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__color_id
#: model_terms:ir.ui.view,arch_db:animal.view_animal_color_form
#: model_terms:ir.ui.view,arch_db:animal.view_animal_search
msgid "Color"
msgstr "Color"
#. module: animal
#: model:ir.actions.act_window,name:animal.action_animal_color
#: model:ir.ui.menu,name:animal.color
msgid "Colors"
msgstr "Colores"
#. module: animal
#: model:ir.ui.menu,name:animal.config
msgid "Configuration"
msgstr "Configuración"
#. module: animal
#: model_terms:ir.actions.act_window,help:animal.action_animal_breed
msgid "Create a breed."
msgstr "Crear una raza."
#. module: animal
#: model_terms:ir.actions.act_window,help:animal.action_animal_color
msgid "Create a color."
msgstr "Crear un color."
#. module: animal
#: model_terms:ir.actions.act_window,help:animal.action_animal_species
msgid "Create a species."
msgstr "Crear un especie."
#. module: animal
#: model_terms:ir.actions.act_window,help:animal.action_animal
msgid "Create an animal."
msgstr "Crear un animal."
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__create_uid
#: model:ir.model.fields,field_description:animal.field_animal_breed__create_uid
#: model:ir.model.fields,field_description:animal.field_animal_color__create_uid
#: model:ir.model.fields,field_description:animal.field_animal_species__create_uid
msgid "Created by"
msgstr "Creado por"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__create_date
#: model:ir.model.fields,field_description:animal.field_animal_breed__create_date
#: model:ir.model.fields,field_description:animal.field_animal_color__create_date
#: model:ir.model.fields,field_description:animal.field_animal_species__create_date
msgid "Created on"
msgstr "Creado el"
#. module: animal
#: model:animal.breed,name:animal.dachshund
msgid "Dachshund"
msgstr "Dachshund"
#. module: animal
#: model:animal.breed,name:animal.dalmatian
msgid "Dalmatian"
msgstr "Dálmata"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__display_name
#: model:ir.model.fields,field_description:animal.field_animal_breed__display_name
#: model:ir.model.fields,field_description:animal.field_animal_color__display_name
#: model:ir.model.fields,field_description:animal.field_animal_species__display_name
msgid "Display Name"
msgstr "Nombre"
#. module: animal
#: model:animal.breed,name:animal.doberman
msgid "Doberman"
msgstr "Doberman"
#. module: animal
#: model:animal.species,name:animal.dog
msgid "Dog"
msgstr "Perro"
#. module: animal
#: model:animal.breed,name:animal.english_cocker_spaniel
msgid "English Cocker Spaniel"
msgstr "Cocker Spaniel Inglés"
#. module: animal
#: model:ir.model.fields.selection,name:animal.selection__animal__gender__female
#: model_terms:ir.ui.view,arch_db:animal.view_animal_search
msgid "Female"
msgstr "Hembra"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__message_follower_ids
msgid "Followers"
msgstr "Seguidores"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__message_channel_ids
msgid "Followers (Channels)"
msgstr "Seguidores (Canales)"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__message_partner_ids
msgid "Followers (Partners)"
msgstr "Seguidores (Contactos)"
#. module: animal
#: model:ir.model.fields,help:animal.field_animal__activity_type_icon
msgid "Font awesome icon e.g. fa-tasks"
msgstr "Font awesome icon ej. fa-tasks"
#. module: animal
#: model:animal.breed,name:animal.french_bulldog
msgid "French Bulldog"
msgstr "Bulldog Francés"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__gender
#: model_terms:ir.ui.view,arch_db:animal.view_animal_search
msgid "Gender"
msgstr "Género"
#. module: animal
#: model:animal.breed,name:animal.german_shepard
msgid "German Shepard"
msgstr "Pastor Alemán"
#. module: animal
#: model:animal.breed,name:animal.golden_retriever
msgid "Golden Retriever"
msgstr "Golden Retriever"
#. module: animal
#: model:animal.breed,name:animal.great_dane
msgid "Great Dane"
msgstr "Gran Danés"
#. module: animal
#: model_terms:ir.ui.view,arch_db:animal.view_animal_search
msgid "Group By"
msgstr "Agrupar por"
#. module: animal
#: model:ir.model.fields.selection,name:animal.selection__animal__gender__hermaphrodite
#: model_terms:ir.ui.view,arch_db:animal.view_animal_search
msgid "Hermaphrodite"
msgstr "Hermafrodita"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__id
#: model:ir.model.fields,field_description:animal.field_animal_breed__id
#: model:ir.model.fields,field_description:animal.field_animal_color__id
#: model:ir.model.fields,field_description:animal.field_animal_species__id
msgid "ID"
msgstr "Id"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__activity_exception_icon
msgid "Icon"
msgstr "Ícono"
#. module: animal
#: model:ir.model.fields,help:animal.field_animal__activity_exception_icon
msgid "Icon to indicate an exception activity."
msgstr "Ícono para indicar una actividad de excepción."
#. module: animal
#: model:ir.model.fields,help:animal.field_animal__message_needaction
#: model:ir.model.fields,help:animal.field_animal__message_unread
msgid "If checked, new messages require your attention."
msgstr "Si está marcado, nuevos mensajes requieren tu atención."
#. module: animal
#: model:ir.model.fields,help:animal.field_animal__message_has_error
msgid "If checked, some messages have a delivery error."
msgstr "Si está marcado, algunos mensajes tienen un error en la entrega."
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__image
msgid "Image"
msgstr "Imagen"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__message_is_follower
msgid "Is Follower"
msgstr "Es un seguidor"
#. module: animal
#: model:animal.breed,name:animal.jack_russell
msgid "Jack Russell"
msgstr "Jack Russell"
#. module: animal
#: model:animal.breed,name:animal.labrador
msgid "Labrador"
msgstr "Labrador"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal____last_update
#: model:ir.model.fields,field_description:animal.field_animal_breed____last_update
#: model:ir.model.fields,field_description:animal.field_animal_color____last_update
#: model:ir.model.fields,field_description:animal.field_animal_species____last_update
msgid "Last Modified on"
msgstr "Ultima modificación el"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__write_uid
#: model:ir.model.fields,field_description:animal.field_animal_breed__write_uid
#: model:ir.model.fields,field_description:animal.field_animal_color__write_uid
#: model:ir.model.fields,field_description:animal.field_animal_species__write_uid
msgid "Last Updated by"
msgstr "Ultima modificación por"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__write_date
#: model:ir.model.fields,field_description:animal.field_animal_breed__write_date
#: model:ir.model.fields,field_description:animal.field_animal_color__write_date
#: model:ir.model.fields,field_description:animal.field_animal_species__write_date
msgid "Last Updated on"
msgstr "Ultima modificación el"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__message_main_attachment_id
msgid "Main Attachment"
msgstr "Adjunto principal"
#. module: animal
#: model:ir.model.fields.selection,name:animal.selection__animal__gender__male
#: model_terms:ir.ui.view,arch_db:animal.view_animal_search
msgid "Male"
msgstr "Macho"
#. module: animal
#: model:res.groups,name:animal.group_animal_manager
msgid "Manager"
msgstr "Gerente"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__message_has_error
msgid "Message Delivery error"
msgstr "Error de entrega del mensaje"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__message_ids
msgid "Messages"
msgstr "Mensajes"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__name
#: model:ir.model.fields,field_description:animal.field_animal_breed__name
#: model:ir.model.fields,field_description:animal.field_animal_color__name
#: model:ir.model.fields,field_description:animal.field_animal_species__name
#: model_terms:ir.ui.view,arch_db:animal.view_animal_search
msgid "Name"
msgstr "Nombre"
#. module: animal
#: model:ir.model.fields.selection,name:animal.selection__animal__gender__neutered
#: model_terms:ir.ui.view,arch_db:animal.view_animal_search
msgid "Neutered"
msgstr "Castrado/a"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__activity_date_deadline
msgid "Next Activity Deadline"
msgstr "Fecha límite de la próxima actividad"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__activity_summary
msgid "Next Activity Summary"
msgstr "Resumen de la próxima actividad"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__activity_type_id
msgid "Next Activity Type"
msgstr "Tipo de la próxima actividad"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__message_needaction_counter
msgid "Number of Actions"
msgstr "Número de acciones"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__message_has_error_counter
msgid "Number of errors"
msgstr "Número de errores"
#. module: animal
#: model:ir.model.fields,help:animal.field_animal__message_needaction_counter
msgid "Number of messages which requires an action"
msgstr "Número de mensajes que requieren una acción"
#. module: animal
#: model:ir.model.fields,help:animal.field_animal__message_has_error_counter
msgid "Number of messages with delivery error"
msgstr "Número de mensajes con error de entrega"
#. module: animal
#: model:ir.model.fields,help:animal.field_animal__message_unread_counter
msgid "Number of unread messages"
msgstr "Número de mensajes sin leer"
#. module: animal
#: model:animal.breed,name:animal.pomeranian
msgid "Pomeranian"
msgstr "Pomerania"
#. module: animal
#: model:animal.breed,name:animal.pug
msgid "Pug"
msgstr "Pug"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__ref
msgid "Reference"
msgstr "Referencia"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__activity_user_id
msgid "Responsible User"
msgstr "Usuario responsable"
#. module: animal
#: model:animal.breed,name:animal.rottweiler
msgid "Rottweiler"
msgstr "Rottweiler"
#. module: animal
#: model:animal.color,name:animal.salt
msgid "Salt and pepper"
msgstr "Sal y pimienta"
#. module: animal
#: model:animal.breed,name:animal.schnauzer
msgid "Schnauzer"
msgstr "Schnauzer"
#. module: animal
#: model:ir.ui.menu,name:animal.settings
msgid "Settings"
msgstr "Ajustes"
#. module: animal
#: model:animal.breed,name:animal.shih_tzu
msgid "Shih Tzu"
msgstr "Shih Tzu"
#. module: animal
#: model:animal.breed,name:animal.siberian_husky
msgid "Siberian Husky"
msgstr "Husky Siberiano"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__size
msgid "Size"
msgstr "Tamaño"
#. module: animal
#: model:ir.actions.act_window,name:animal.action_animal_species
#: model:ir.model.fields,field_description:animal.field_animal__species_id
#: model:ir.model.fields,field_description:animal.field_animal_breed__species_id
#: model:ir.model.fields,field_description:animal.field_animal_color__species_id
#: model:ir.ui.menu,name:animal.species
#: model_terms:ir.ui.view,arch_db:animal.view_animal_search
#: model_terms:ir.ui.view,arch_db:animal.view_animal_species_form
#: model_terms:ir.ui.view,arch_db:animal.view_animal_species_tree
msgid "Species"
msgstr "Especies"
#. module: animal
#: model:ir.model.fields,help:animal.field_animal__activity_state
msgid ""
"Status based on activities\n"
"Overdue: Due date is already passed\n"
"Today: Activity date is today\n"
"Planned: Future activities."
msgstr ""
"Estado basado en actividades\n"
"Atrasado: La fecha de vencimiento ya ha pasado\n"
"Hoy: La fecha de la actividad es hoy\n"
"Planeado: Actividades futuras."
#. module: animal
#: model:ir.model.fields,help:animal.field_animal__image
msgid "This field holds the photo of the animal."
msgstr "Foto del animal."
#. module: animal
#: model:ir.model.fields,help:animal.field_animal__activity_exception_decoration
msgid "Type of the exception activity on record."
msgstr "Tipo de actividad de excepción registrada."
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__message_unread
msgid "Unread Messages"
msgstr "Nuevos mensajes"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__message_unread_counter
msgid "Unread Messages Counter"
msgstr "Contador de mensajes sin leer"
#. module: animal
#: model:ir.model.fields,field_description:animal.field_animal__weight
msgid "Weight (in kg)"
msgstr "Peso (en kg)"
#. module: animal
#: model:animal.breed,name:animal.yorkshire_terrier
msgid "Yorkshire Terrier"
msgstr "Yorkshire Terrier"
#. module: animal
#: model_terms:ir.ui.view,arch_db:animal.view_animal_color_tree
msgid "colors"
msgstr "colores"

6
animal/models/__init__.py

@ -0,0 +1,6 @@
from . import (
animal_species,
animal_breed,
animal_color,
animal,
)

42
animal/models/animal.py

@ -0,0 +1,42 @@
# Copyright (C) 2020 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class Animal(models.Model):
_name = "animal"
_description = "Animal"
_inherit = ["mail.thread", "mail.activity.mixin"]
_order = "name"
name = fields.Char(string="Name")
ref = fields.Char(string="Reference")
species_id = fields.Many2one("animal.species", string="Species", required=True)
breed_id = fields.Many2one("animal.breed", string="Breed", required=True)
color_id = fields.Many2one("animal.color", string="Color")
size = fields.Char(string="Size")
weight = fields.Float(string="Weight (in kg)")
birth_date = fields.Date(string="Birth Date")
gender = fields.Selection(
string="Gender",
selection=[
("female", "Female"),
("male", "Male"),
("hermaphrodite", "Hermaphrodite"),
("neutered", "Neutered"),
],
default="female",
required=True,
)
active = fields.Boolean(default=True)
image = fields.Binary(
"Image", attachment=True, help="This field holds the photo of the animal."
)
@api.onchange("species_id")
def onchange_species(self):
self.breed_id = False
@api.onchange("breed_id")
def onchange_breed(self):
self.color_id = False

12
animal/models/animal_breed.py

@ -0,0 +1,12 @@
# Copyright (C) 2020 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class AnimalBreed(models.Model):
_name = "animal.breed"
_description = "Animal Breeds"
_order = "name"
name = fields.Char(string="Name", translate=True)
species_id = fields.Many2one("animal.species", string="Species", required=True)

14
animal/models/animal_color.py

@ -0,0 +1,14 @@
# Copyright (C) 2020 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class AnimalColor(models.Model):
_name = "animal.color"
_description = "Animal Colors"
name = fields.Char(string="Name", translate=True)
breed_id = fields.Many2one("animal.breed", string="Breed", required=True)
species_id = fields.Many2one(
"animal.species", string="Species", related="breed_id.species_id", readonly=True
)

12
animal/models/animal_species.py

@ -0,0 +1,12 @@
# Copyright (C) 2020 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class AnimalSpecies(models.Model):
_name = "animal.species"
_description = "Animal Species"
_order = "name"
name = fields.Char(string="Name", translate=True)
breed_ids = fields.One2many("animal.breed", "species_id", string="Breeds")

3
animal/readme/CONTRIBUTORS.rst

@ -0,0 +1,3 @@
* Open Source Integrators <https://www.opensourceintegrators.com>
* Maxime Chambreuil <mchambreuil@opensourceintegrators.com>

1
animal/readme/DESCRIPTION.rst

@ -0,0 +1 @@
This module allows you to store animal information.

3
animal/readme/USAGE.rst

@ -0,0 +1,3 @@
* Go to Animals
* Create an animal by entering his name and selecting his gender, species, breed and
color.

8
animal/security/ir.model.access.csv

@ -0,0 +1,8 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_animal_user,animal.user,model_animal,base.group_user,1,1,1,1
access_animal_color_user,animal.color.user,model_animal_color,base.group_user,1,0,0,0
access_animal_color_manager,animal.color.manaager,model_animal_color,animal.group_animal_manager,1,1,1,1
access_animal_breed_user,animal.breed.user,model_animal_breed,base.group_user,1,0,0,0
access_animal_breed_manager,animal.breed.manager,model_animal_breed,animal.group_animal_manager,1,1,1,1
access_animal_species_user,animal.species.user,model_animal_species,base.group_user,1,0,0,0
access_animal_species_manager,animal.species.manager,model_animal_species,animal.group_animal_manager,1,1,1,0

13
animal/security/res_groups.xml

@ -0,0 +1,13 @@
<odoo>
<!-- Animal groups -->
<record id="group_animal_manager" model="res.groups">
<field name="name">Manager</field>
<field name="category_id" ref="animal" />
<field
name="users"
eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"
/>
</record>
</odoo>

BIN
animal/static/description/icon.png

After

Width: 591  |  Height: 592  |  Size: 37 KiB

433
animal/static/description/index.html

@ -0,0 +1,433 @@
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
<title>Animal</title>
<style type="text/css">
/*
:Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
customize this style sheet.
*/
/* used to remove borders from tables and images */
.borderless, table.borderless td, table.borderless th {
border: 0 }
table.borderless td, table.borderless th {
/* Override padding for "table.docutils td" with "! important".
The right padding separates the table cells. */
padding: 0 0.5em 0 0 ! important }
.first {
/* Override more specific margin styles with "! important". */
margin-top: 0 ! important }
.last, .with-subtitle {
margin-bottom: 0 ! important }
.hidden {
display: none }
.subscript {
vertical-align: sub;
font-size: smaller }
.superscript {
vertical-align: super;
font-size: smaller }
a.toc-backref {
text-decoration: none ;
color: black }
blockquote.epigraph {
margin: 2em 5em ; }
dl.docutils dd {
margin-bottom: 0.5em }
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
overflow: hidden;
}
/* Uncomment (and remove this text!) to get bold-faced definition list terms
dl.docutils dt {
font-weight: bold }
*/
div.abstract {
margin: 2em 5em }
div.abstract p.topic-title {
font-weight: bold ;
text-align: center }
div.admonition, div.attention, div.caution, div.danger, div.error,
div.hint, div.important, div.note, div.tip, div.warning {
margin: 2em ;
border: medium outset ;
padding: 1em }
div.admonition p.admonition-title, div.hint p.admonition-title,
div.important p.admonition-title, div.note p.admonition-title,
div.tip p.admonition-title {
font-weight: bold ;
font-family: sans-serif }
div.attention p.admonition-title, div.caution p.admonition-title,
div.danger p.admonition-title, div.error p.admonition-title,
div.warning p.admonition-title, .code .error {
color: red ;
font-weight: bold ;
font-family: sans-serif }
/* Uncomment (and remove this text!) to get reduced vertical space in
compound paragraphs.
div.compound .compound-first, div.compound .compound-middle {
margin-bottom: 0.5em }
div.compound .compound-last, div.compound .compound-middle {
margin-top: 0.5em }
*/
div.dedication {
margin: 2em 5em ;
text-align: center ;
font-style: italic }
div.dedication p.topic-title {
font-weight: bold ;
font-style: normal }
div.figure {
margin-left: 2em ;
margin-right: 2em }
div.footer, div.header {
clear: both;
font-size: smaller }
div.line-block {
display: block ;
margin-top: 1em ;
margin-bottom: 1em }
div.line-block div.line-block {
margin-top: 0 ;
margin-bottom: 0 ;
margin-left: 1.5em }
div.sidebar {
margin: 0 0 0.5em 1em ;
border: medium outset ;
padding: 1em ;
background-color: #ffffee ;
width: 40% ;
float: right ;
clear: right }
div.sidebar p.rubric {
font-family: sans-serif ;
font-size: medium }
div.system-messages {
margin: 5em }
div.system-messages h1 {
color: red }
div.system-message {
border: medium outset ;
padding: 1em }
div.system-message p.system-message-title {
color: red ;
font-weight: bold }
div.topic {
margin: 2em }
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
margin-top: 0.4em }
h1.title {
text-align: center }
h2.subtitle {
text-align: center }
hr.docutils {
width: 75% }
img.align-left, .figure.align-left, object.align-left, table.align-left {
clear: left ;
float: left ;
margin-right: 1em }
img.align-right, .figure.align-right, object.align-right, table.align-right {
clear: right ;
float: right ;
margin-left: 1em }
img.align-center, .figure.align-center, object.align-center {
display: block;
margin-left: auto;
margin-right: auto;
}
table.align-center {
margin-left: auto;
margin-right: auto;
}
.align-left {
text-align: left }
.align-center {
clear: both ;
text-align: center }
.align-right {
text-align: right }
/* reset inner alignment in figures */
div.align-right {
text-align: inherit }
/* div.align-center * { */
/* text-align: left } */
.align-top {
vertical-align: top }
.align-middle {
vertical-align: middle }
.align-bottom {
vertical-align: bottom }
ol.simple, ul.simple {
margin-bottom: 1em }
ol.arabic {
list-style: decimal }
ol.loweralpha {
list-style: lower-alpha }
ol.upperalpha {
list-style: upper-alpha }
ol.lowerroman {
list-style: lower-roman }
ol.upperroman {
list-style: upper-roman }
p.attribution {
text-align: right ;
margin-left: 50% }
p.caption {
font-style: italic }
p.credits {
font-style: italic ;
font-size: smaller }
p.label {
white-space: nowrap }
p.rubric {
font-weight: bold ;
font-size: larger ;
color: maroon ;
text-align: center }
p.sidebar-title {
font-family: sans-serif ;
font-weight: bold ;
font-size: larger }
p.sidebar-subtitle {
font-family: sans-serif ;
font-weight: bold }
p.topic-title {
font-weight: bold }
pre.address {
margin-bottom: 0 ;
margin-top: 0 ;
font: inherit }
pre.literal-block, pre.doctest-block, pre.math, pre.code {
margin-left: 2em ;
margin-right: 2em }
pre.code .ln { color: grey; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
pre.code .literal.string, code .literal.string { color: #0C5404 }
pre.code .name.builtin, code .name.builtin { color: #352B84 }
pre.code .deleted, code .deleted { background-color: #DEB0A1}
pre.code .inserted, code .inserted { background-color: #A3D289}
span.classifier {
font-family: sans-serif ;
font-style: oblique }
span.classifier-delimiter {
font-family: sans-serif ;
font-weight: bold }
span.interpreted {
font-family: sans-serif }
span.option {
white-space: nowrap }
span.pre {
white-space: pre }
span.problematic {
color: red }
span.section-subtitle {
/* font-size relative to parent (h1..h6 element) */
font-size: 80% }
table.citation {
border-left: solid 1px gray;
margin-left: 1px }
table.docinfo {
margin: 2em 4em }
table.docutils {
margin-top: 0.5em ;
margin-bottom: 0.5em }
table.footnote {
border-left: solid 1px black;
margin-left: 1px }
table.docutils td, table.docutils th,
table.docinfo td, table.docinfo th {
padding-left: 0.5em ;
padding-right: 0.5em ;
vertical-align: top }
table.docutils th.field-name, table.docinfo th.docinfo-name {
font-weight: bold ;
text-align: left ;
white-space: nowrap ;
padding-left: 0 }
/* "booktabs" style (no vertical lines) */
table.docutils.booktabs {
border: 0px;
border-top: 2px solid;
border-bottom: 2px solid;
border-collapse: collapse;
}
table.docutils.booktabs * {
border: 0px;
}
table.docutils.booktabs th {
border-bottom: thin solid;
text-align: left;
}
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
font-size: 100% }
ul.auto-toc {
list-style-type: none }
</style>
</head>
<body>
<div class="document" id="animal">
<h1 class="title">Animal</h1>
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/partner-contact/tree/14.0/animal"><img alt="OCA/partner-contact" src="https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/partner-contact-14-0/partner-contact-14-0-animal"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/134/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module allows you to store animal information.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#usage" id="id1">Usage</a></li>
<li><a class="reference internal" href="#bug-tracker" id="id2">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="id3">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="id4">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="id5">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="id6">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#id1">Usage</a></h1>
<ul class="simple">
<li>Go to Animals</li>
<li>Create an animal by entering his name and selecting his gender, species, breed and
color.</li>
</ul>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#id2">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/partner-contact/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/partner-contact/issues/new?body=module:%20animal%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h1><a class="toc-backref" href="#id3">Credits</a></h1>
<div class="section" id="authors">
<h2><a class="toc-backref" href="#id4">Authors</a></h2>
<ul class="simple">
<li>Open Source Integrators</li>
</ul>
</div>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#id5">Contributors</a></h2>
<ul class="simple">
<li>Open Source Integrators &lt;<a class="reference external" href="https://www.opensourceintegrators.com">https://www.opensourceintegrators.com</a>&gt;<ul>
<li>Maxime Chambreuil &lt;<a class="reference external" href="mailto:mchambreuil&#64;opensourceintegrators.com">mchambreuil&#64;opensourceintegrators.com</a>&gt;</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#id6">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
<p><a class="reference external" href="https://github.com/max3903"><img alt="max3903" src="https://github.com/max3903.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/partner-contact/tree/14.0/animal">OCA/partner-contact</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
</div>
</body>
</html>

BIN
animal/static/img/avatar.png

After

Width: 2130  |  Height: 2130  |  Size: 86 KiB

217
animal/views/animal.xml

@ -0,0 +1,217 @@
<odoo>
<data>
<!-- Animal Tree View -->
<record id="view_animal_tree" model="ir.ui.view">
<field name="name">animal.tree</field>
<field name="model">animal</field>
<field name="arch" type="xml">
<tree string="Animals">
<field name="ref" />
<field name="name" />
<field name="gender" />
<field name="species_id" />
<field name="breed_id" />
<field name="color_id" />
</tree>
</field>
</record>
<!-- Animal Form View -->
<record id="view_animal_form" model="ir.ui.view">
<field name="name">animal.form</field>
<field name="model">animal</field>
<field name="arch" type="xml">
<form string="Animal">
<sheet>
<widget
name="web_ribbon"
title="Archived"
bg_color="bg-danger"
attrs="{'invisible': [('active', '=', True)]}"
/>
<field name="active" invisible="1" />
<field name="image" widget='image' class="oe_avatar" />
<div class="oe_title">
<h1>
<field name="name" />
</h1>
<field
name="gender"
widget="radio"
options="{'horizontal': true}"
/>
</div>
<group id="main">
<group id="left">
<field name="species_id" />
<field
name="breed_id"
domain="[('species_id', '=', species_id)]"
/>
<field
name="color_id"
domain="[('breed_id', '=', breed_id)]"
/>
<field name="size" />
</group>
<group id="right">
<field name="ref" />
<field name="weight" />
<field name="birth_date" />
</group>
</group>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers" />
<field name="activity_ids" widget="mail_activity" />
<field
name="message_ids"
widget="mail_thread"
options="{'post_refresh': 'recipients'}"
/>
</div>
</form>
</field>
</record>
<!-- Animal Kanban View -->
<record id="view_animal_kanban" model="ir.ui.view">
<field name="name">animal.kanban</field>
<field name="model">animal</field>
<field name="arch" type="xml">
<kanban class="o_res_partner_kanban">
<field name="id" />
<field name="image" />
<field name="name" />
<templates>
<t t-name="kanban-box">
<div
class="oe_kanban_global_click o_kanban_record_has_image_fill o_res_partner_kanban"
>
<t t-if="record.image.raw_value">
<img
class="o_kanban_image"
t-att-src="kanban_image('animal', 'image', record.id.raw_value)"
t-att-alt="record.name"
/>
</t>
<t t-else="">
<img
class="o_kanban_image"
alt="Avatar"
t-att-src='_s + "/animal/static/img/avatar.png"'
/>
</t>
<div class="oe_kanban_details">
<strong
class="o_kanban_record_title oe_partner_heading"
>
<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.species_id.raw_value and record.breed_id.raw_value"
>
<field name="breed_id" />
<field name="species_id" />
</li>
</ul>
<div class="oe_kanban_partner_links" />
</div>
</div>
</t>
</templates>
</kanban>
</field>
</record>
<!-- Search for animal -->
<record id="view_animal_search" model="ir.ui.view">
<field name="name">animal.search</field>
<field name="model">animal</field>
<field name="arch" type="xml">
<search string="Animals">
<field
name="name"
filter_domain="['|', ('name', 'ilike', self), ('ref', 'ilike', self)]"
string="Name"
/>
<field name="species_id" />
<field name="breed_id" />
<field name="color_id" />
<field name="size" />
<separator />
<filter
string="Female"
domain="[('gender', '=', 'female')]"
name="female"
/>
<filter
string="Male"
domain="[('gender', '=', 'male')]"
name="male"
/>
<filter
string="Hermaphrodite"
domain="[('gender', '=', 'hermaphrodite')]"
name="hermaphrodite"
/>
<filter
string="Neutered"
domain="[('gender', '=', 'neutered')]"
name="neutered"
/>
<separator />
<filter
string="Archived"
name="inactive"
domain="[('active', '=', False)]"
/>
<separator />
<group expand="0" string="Group By">
<filter
name="gender"
string="Gender"
domain=""
context="{'group_by': 'gender'}"
/>
<filter
name="species_id"
string="Species"
domain=""
context="{'group_by': 'species_id'}"
/>
<filter
name="breed_id"
string="Breed"
domain=""
context="{'group_by': 'breed_id'}"
/>
<filter
name="color_id"
string="Color"
domain=""
context="{'group_by': 'color_id'}"
/>
</group>
</search>
</field>
</record>
<record id="action_animal" model="ir.actions.act_window">
<field name="name">Animals</field>
<field name="res_model">animal</field>
<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>
</field>
</record>
</data>
</odoo>

52
animal/views/animal_breed.xml

@ -0,0 +1,52 @@
<odoo>
<!-- Animal breed Tree View -->
<record id="view_animal_breed_tree" model="ir.ui.view">
<field name="name">view.animal.breed.tree</field>
<field name="model">animal.breed</field>
<field name="arch" type="xml">
<tree string="Breeds">
<field name="name" />
<field name="species_id" />
</tree>
</field>
</record>
<!-- Animal breed Form View -->
<record id="view_animal_breed_form" model="ir.ui.view">
<field name="name">view.animal.breed.form</field>
<field name="model">animal.breed</field>
<field name="arch" type="xml">
<form string="Breed">
<header />
<sheet>
<div class="oe_button_box" name="button_box" />
<div class="oe_title">
<h1>
<field name="name" />
</h1>
</div>
<group id="main">
<group id="left">
<field name="species_id" />
</group>
<group id="right" />
</group>
<notebook />
</sheet>
</form>
</field>
</record>
<record id="action_animal_breed" model="ir.actions.act_window">
<field name="name">Breeds</field>
<field name="res_model">animal.breed</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create a breed.
</p>
</field>
</record>
</odoo>

54
animal/views/animal_color.xml

@ -0,0 +1,54 @@
<odoo>
<!-- Animal color Tree View -->
<record id="view_animal_color_tree" model="ir.ui.view">
<field name="name">view.animal.color.tree</field>
<field name="model">animal.color</field>
<field name="arch" type="xml">
<tree string="colors">
<field name="name" />
<field name="breed_id" />
<field name="species_id" />
</tree>
</field>
</record>
<!-- Animal Color Form View -->
<record id="view_animal_color_form" model="ir.ui.view">
<field name="name">view.animal.color.form</field>
<field name="model">animal.color</field>
<field name="arch" type="xml">
<form string="Color">
<header />
<sheet>
<div class="oe_button_box" name="button_box" />
<div class="oe_title">
<h1>
<field name="name" />
</h1>
</div>
<group id="main">
<group id="left">
<field name="breed_id" />
<field name="species_id" />
</group>
<group id="right" />
</group>
<notebook />
</sheet>
</form>
</field>
</record>
<record id="action_animal_color" model="ir.actions.act_window">
<field name="name">Colors</field>
<field name="res_model">animal.color</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create a color.
</p>
</field>
</record>
</odoo>

53
animal/views/animal_species.xml

@ -0,0 +1,53 @@
<odoo>
<!-- Animal Species Tree View -->
<record id="view_animal_species_tree" model="ir.ui.view">
<field name="name">view.animal.species.tree</field>
<field name="model">animal.species</field>
<field name="arch" type="xml">
<tree string="Species">
<field name="name" />
</tree>
</field>
</record>
<!-- Animal Species Form View -->
<record id="view_animal_species_form" model="ir.ui.view">
<field name="name">view.animal.species.form</field>
<field name="model">animal.species</field>
<field name="arch" type="xml">
<form string="Species">
<header />
<sheet>
<div class="oe_button_box" name="button_box" />
<div class="oe_title">
<h1>
<field name="name" />
</h1>
</div>
<group id="main">
<group id="left" />
<group id="right" />
</group>
<notebook>
<page string="Breeds" id="breeds">
<field name="breed_ids" />
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record id="action_animal_species" model="ir.actions.act_window">
<field name="name">Species</field>
<field name="res_model">animal.species</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create a species.
</p>
</field>
</record>
</odoo>

50
animal/views/menu.xml

@ -0,0 +1,50 @@
<odoo>
<!-- Main Menu -->
<menuitem
id="root"
name="Animals"
action="action_animal"
sequence="10"
web_icon="animal,static/description/icon.png"
/>
<menuitem
id="animal"
name="Animals"
action="action_animal"
sequence="10"
parent="root"
/>
<menuitem
id="config"
name="Configuration"
sequence="100"
parent="root"
groups="group_animal_manager"
/>
<!-- Configuration -->
<menuitem id="settings" name="Settings" sequence="10" parent="config" />
<menuitem
id="species"
name="Species"
action="action_animal_species"
sequence="20"
parent="config"
/>
<menuitem
id="breed"
name="Breeds"
action="action_animal_breed"
sequence="30"
parent="config"
/>
<menuitem
id="color"
name="Colors"
action="action_animal_color"
sequence="40"
parent="config"
/>
</odoo>

1
setup/animal/odoo/addons/animal

@ -0,0 +1 @@
../../../../animal

6
setup/animal/setup.py

@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
Loading…
Cancel
Save