From a469cb27ff6fa9507eac3ca60f4432da3b41bf0e Mon Sep 17 00:00:00 2001 From: Oihane Crucelaegui Date: Tue, 12 Mar 2019 11:55:05 +0100 Subject: [PATCH] [MIG] partner_contact_birthdate: Migration to 12.0 --- partner_contact_birthdate/README.rst | 75 +-- partner_contact_birthdate/__init__.py | 3 - partner_contact_birthdate/__manifest__.py | 8 +- partner_contact_birthdate/models/__init__.py | 4 - .../models/res_partner.py | 4 +- .../readme/CONTRIBUTORS.rst | 5 + .../readme/DESCRIPTION.rst | 3 + .../readme/INSTALLATION.rst | 5 + partner_contact_birthdate/readme/USAGE.rst | 5 + .../static/description/index.html | 435 ++++++++++++++++++ .../views/res_partner.xml | 10 +- 11 files changed, 512 insertions(+), 45 deletions(-) create mode 100644 partner_contact_birthdate/readme/CONTRIBUTORS.rst create mode 100644 partner_contact_birthdate/readme/DESCRIPTION.rst create mode 100644 partner_contact_birthdate/readme/INSTALLATION.rst create mode 100644 partner_contact_birthdate/readme/USAGE.rst create mode 100644 partner_contact_birthdate/static/description/index.html diff --git a/partner_contact_birthdate/README.rst b/partner_contact_birthdate/README.rst index 9754a6595..7be9848bf 100644 --- a/partner_contact_birthdate/README.rst +++ b/partner_contact_birthdate/README.rst @@ -1,26 +1,38 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg +=================== +Contact's birthdate +=================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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 - -Module name -=========== +.. |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/partner_contact_birthdate + :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-partner_contact_birthdate + :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 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| This module was written to extend the functionality of Odoo to support setting a birthdate using a date format and allow you to benefit of a clearer API and UI. -Installation -============ - -To install this module, you need to: - -* Install the OCA repository `partner-contact`_. -* Update your modules list. -* Search and install this module. +**Table of contents** -Configuration -============= - -No configuration is needed. +.. contents:: + :local: Usage ===== @@ -31,16 +43,26 @@ To use this module, you need to: * Ensure it is **not** a company. * Set the birthdate there. -For further information, please visit: +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 `_. -* https://www.odoo.com/forum/help-1 -* https://github.com/OCA/partner-contact/ +Do not contact contributors directly about support or help with technical issues. Credits ======= +Authors +~~~~~~~ + +* Tecnativa + Contributors ------------- +~~~~~~~~~~~~ * EL Hadji DEM * Jairo Llopis @@ -48,20 +70,19 @@ Contributors * Rudolf Schnapka * Denis Leemann -Maintainer ----------- +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://odoo-community.org -This module is maintained by the OCA. - 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. -To contribute to this module, please visit http://odoo-community.org. - +This module is part of the `OCA/partner-contact `_ project on GitHub. -.. _partner-contact: https://github.com/OCA/partner-contact/ +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/partner_contact_birthdate/__init__.py b/partner_contact_birthdate/__init__.py index ece3a2c15..0650744f6 100644 --- a/partner_contact_birthdate/__init__.py +++ b/partner_contact_birthdate/__init__.py @@ -1,4 +1 @@ -# Copyright (C) 2014-2015 Grupo ESOC -# © 2017-Apertoso N.V. () -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import models diff --git a/partner_contact_birthdate/__manifest__.py b/partner_contact_birthdate/__manifest__.py index 76c4c8770..0939a456f 100644 --- a/partner_contact_birthdate/__manifest__.py +++ b/partner_contact_birthdate/__manifest__.py @@ -1,16 +1,16 @@ # Copyright 2014-2015 Grupo ESOC -# © 2017-Apertoso N.V. () -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# Copyright 2017-Apertoso N.V. () +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "name": "Contact's birthdate", - 'version': '11.0.1.0.0', + 'version': '12.0.1.0.0', "author": "Tecnativa," "Odoo Community Association (OCA)", "category": "Customer Relationship Management", "website": "https://github.com/OCA/partner-contact", "depends": [ - "base", + "partner_contact_personal_information_page", ], "data": [ "views/res_partner.xml", diff --git a/partner_contact_birthdate/models/__init__.py b/partner_contact_birthdate/models/__init__.py index 2ff0408ae..91fed54d4 100644 --- a/partner_contact_birthdate/models/__init__.py +++ b/partner_contact_birthdate/models/__init__.py @@ -1,5 +1 @@ -# Copyright 2014-2015 Grupo ESOC -# © 2017-Apertoso N.V. () -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - from . import res_partner diff --git a/partner_contact_birthdate/models/res_partner.py b/partner_contact_birthdate/models/res_partner.py index 0eb0461f4..c994dfa09 100644 --- a/partner_contact_birthdate/models/res_partner.py +++ b/partner_contact_birthdate/models/res_partner.py @@ -1,6 +1,6 @@ # Copyright (C) 2014-2015 Grupo ESOC -# © 2017-Apertoso N.V. () -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# Copyright 2017-Apertoso N.V. () +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import fields, models diff --git a/partner_contact_birthdate/readme/CONTRIBUTORS.rst b/partner_contact_birthdate/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..0615a1b5c --- /dev/null +++ b/partner_contact_birthdate/readme/CONTRIBUTORS.rst @@ -0,0 +1,5 @@ +* EL Hadji DEM +* Jairo Llopis +* Matjaž Mozetič +* Rudolf Schnapka +* Denis Leemann diff --git a/partner_contact_birthdate/readme/DESCRIPTION.rst b/partner_contact_birthdate/readme/DESCRIPTION.rst new file mode 100644 index 000000000..d2dba4cd6 --- /dev/null +++ b/partner_contact_birthdate/readme/DESCRIPTION.rst @@ -0,0 +1,3 @@ +This module was written to extend the functionality of Odoo to support setting +a birthdate using a date format and allow you to benefit of a clearer API and +UI. diff --git a/partner_contact_birthdate/readme/INSTALLATION.rst b/partner_contact_birthdate/readme/INSTALLATION.rst new file mode 100644 index 000000000..c628846af --- /dev/null +++ b/partner_contact_birthdate/readme/INSTALLATION.rst @@ -0,0 +1,5 @@ +To install this module, you need to: + +* Install the OCA repository `partner-contact `_. +* Update your modules list. +* Search and install this module. diff --git a/partner_contact_birthdate/readme/USAGE.rst b/partner_contact_birthdate/readme/USAGE.rst new file mode 100644 index 000000000..b2f28407a --- /dev/null +++ b/partner_contact_birthdate/readme/USAGE.rst @@ -0,0 +1,5 @@ +To use this module, you need to: + +* Edit or create a partner. +* Ensure it is **not** a company. +* Set the birthdate there. diff --git a/partner_contact_birthdate/static/description/index.html b/partner_contact_birthdate/static/description/index.html new file mode 100644 index 000000000..a3c2707d2 --- /dev/null +++ b/partner_contact_birthdate/static/description/index.html @@ -0,0 +1,435 @@ + + + + + + +Contact's birthdate + + + +
+

Contact’s birthdate

+ + +

Beta License: AGPL-3 OCA/partner-contact Translate me on Weblate Try me on Runbot

+

This module was written to extend the functionality of Odoo to support setting +a birthdate using a date format and allow you to benefit of a clearer API and +UI.

+

Table of contents

+ +
+

Usage

+

To use this module, you need to:

+
    +
  • Edit or create a partner.
  • +
  • Ensure it is not a company.
  • +
  • Set the birthdate there.
  • +
+
+
+

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.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Tecnativa
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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.

+

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/partner_contact_birthdate/views/res_partner.xml b/partner_contact_birthdate/views/res_partner.xml index b5bf255d9..720ab8866 100644 --- a/partner_contact_birthdate/views/res_partner.xml +++ b/partner_contact_birthdate/views/res_partner.xml @@ -1,15 +1,15 @@ - + Birthdate Date field res.partner - + - - + +