From 889fcd469b1533b76f14179c0486b72cdac906ab Mon Sep 17 00:00:00 2001 From: David Beal Date: Wed, 10 Nov 2021 16:06:40 +0100 Subject: [PATCH] MIGR 14.0 animal_owner --- animal_owner/README.rst | 8 +++---- animal_owner/__init__.py | 2 -- animal_owner/__manifest__.py | 5 ++-- animal_owner/models/__init__.py | 2 +- animal_owner/models/animal.py | 2 +- animal_owner/models/res_partner.py | 3 +-- animal_owner/views/animal.xml | 26 ++++++++++++--------- animal_owner/views/res_partner.xml | 19 ++++++++------- setup/animal_owner/odoo/addons/animal_owner | 1 + setup/animal_owner/setup.py | 6 +++++ 10 files changed, 42 insertions(+), 32 deletions(-) create mode 120000 setup/animal_owner/odoo/addons/animal_owner create mode 100644 setup/animal_owner/setup.py diff --git a/animal_owner/README.rst b/animal_owner/README.rst index dd1b6d826..58422b792 100644 --- a/animal_owner/README.rst +++ b/animal_owner/README.rst @@ -14,13 +14,13 @@ Animal Owner :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/12.0/animal_owner + :target: https://github.com/OCA/partner-contact/tree/14.0/animal_owner :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-12-0/partner-contact-12-0-animal_owner :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/12.0 + :target: https://runbot.odoo-community.org/runbot/134/14.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -45,7 +45,7 @@ Bug Tracker Bugs are tracked on `GitHub 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -85,6 +85,6 @@ Current `maintainer `__: |maintainer-max3903| -This module is part of the `OCA/partner-contact `_ project on GitHub. +This module is part of the `OCA/partner-contact `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/animal_owner/__init__.py b/animal_owner/__init__.py index 3b2a810b9..0650744f6 100644 --- a/animal_owner/__init__.py +++ b/animal_owner/__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 diff --git a/animal_owner/__manifest__.py b/animal_owner/__manifest__.py index dcee2735f..44c9d463b 100644 --- a/animal_owner/__manifest__.py +++ b/animal_owner/__manifest__.py @@ -1,8 +1,8 @@ # Copyright (C) 2020 Open Source Integrators -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { "name": "Animal Owner", - "version": "12.0.1.0.0", + "version": "14.0.1.0.0", "license": "AGPL-3", "summary": "Add owner to the animal", "author": "Open Source Integrators, Odoo Community Association (OCA)", @@ -10,7 +10,6 @@ "website": "https://github.com/OCA/partner-contact", "depends": ["animal"], "data": ["views/animal.xml", "views/res_partner.xml"], - "application": False, "development_status": "Beta", "maintainers": ["max3903"], } diff --git a/animal_owner/models/__init__.py b/animal_owner/models/__init__.py index 4324c4e96..e84a5c235 100644 --- a/animal_owner/models/__init__.py +++ b/animal_owner/models/__init__.py @@ -1,3 +1,3 @@ # Copyright (C) 2020 Open Source Integrators -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from . import animal, res_partner diff --git a/animal_owner/models/animal.py b/animal_owner/models/animal.py index 3bc4e8461..4c9cc2707 100644 --- a/animal_owner/models/animal.py +++ b/animal_owner/models/animal.py @@ -1,5 +1,5 @@ # Copyright (C) 2020 Open Source Integrators -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import fields, models diff --git a/animal_owner/models/res_partner.py b/animal_owner/models/res_partner.py index 66945cb70..662c32e78 100644 --- a/animal_owner/models/res_partner.py +++ b/animal_owner/models/res_partner.py @@ -1,5 +1,5 @@ # Copyright (C) 2020 Open Source Integrators -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import api, fields, models @@ -16,7 +16,6 @@ class ResPartner(models.Model): compute=_compute_animal_count, string="Number of Animals", store=True ) - @api.multi def action_view_animals(self): action = self.env.ref("animal.action_animal").read()[0] if self.animal_count > 1: diff --git a/animal_owner/views/animal.xml b/animal_owner/views/animal.xml index 6968c30cf..49bb4cfc1 100644 --- a/animal_owner/views/animal.xml +++ b/animal_owner/views/animal.xml @@ -4,10 +4,10 @@ view.animal.owner.tree animal - + - + @@ -16,10 +16,10 @@ view.animal.owner.form animal - + - + @@ -28,13 +28,13 @@ view.animal.owner.kanban animal - + - + -
  • +
  • @@ -43,14 +43,18 @@ view.animal.owner.search animal - + - + - + diff --git a/animal_owner/views/res_partner.xml b/animal_owner/views/res_partner.xml index b7a1c1495..9ed3492f8 100644 --- a/animal_owner/views/res_partner.xml +++ b/animal_owner/views/res_partner.xml @@ -2,20 +2,23 @@ - view.partner.animal.owner.form res.partner - + - - + diff --git a/setup/animal_owner/odoo/addons/animal_owner b/setup/animal_owner/odoo/addons/animal_owner new file mode 120000 index 000000000..8c6ac1a74 --- /dev/null +++ b/setup/animal_owner/odoo/addons/animal_owner @@ -0,0 +1 @@ +../../../../animal_owner \ No newline at end of file diff --git a/setup/animal_owner/setup.py b/setup/animal_owner/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/animal_owner/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)