From 73207112226d81d86b5e8b6d72c1b2dd2953b7d6 Mon Sep 17 00:00:00 2001 From: Denis Leemann Date: Mon, 18 Jan 2016 13:18:40 +0100 Subject: [PATCH] Port of Birthdate --- partner_contact_birthdate/README.rst | 1 + partner_contact_birthdate/__init__.py | 17 +------------ partner_contact_birthdate/__openerp__.py | 24 +++++-------------- .../data/res_partner.yml | 16 +------------ partner_contact_birthdate/models/__init__.py | 5 ++++ .../{models.py => models/res_partner.py} | 17 +------------ partner_contact_birthdate/tests/__init__.py | 17 +------------ .../tests/test_birthdate.py | 16 +------------ .../views/res_partner.xml | 9 +++---- 9 files changed, 22 insertions(+), 100 deletions(-) create mode 100644 partner_contact_birthdate/models/__init__.py rename partner_contact_birthdate/{models.py => models/res_partner.py} (65%) diff --git a/partner_contact_birthdate/README.rst b/partner_contact_birthdate/README.rst index 590cd7f74..d367fd71b 100644 --- a/partner_contact_birthdate/README.rst +++ b/partner_contact_birthdate/README.rst @@ -58,6 +58,7 @@ Contributors * Jairo Llopis * Matjaž Mozetič * Rudolf Schnapka +* Denis Leemann Maintainer ---------- diff --git a/partner_contact_birthdate/__init__.py b/partner_contact_birthdate/__init__.py index 3b3430c28..2fe0926df 100644 --- a/partner_contact_birthdate/__init__.py +++ b/partner_contact_birthdate/__init__.py @@ -1,19 +1,4 @@ # -*- coding: utf-8 -*- - -# Odoo, Open Source Management Solution # Copyright (C) 2014-2015 Grupo ESOC -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . - +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import models diff --git a/partner_contact_birthdate/__openerp__.py b/partner_contact_birthdate/__openerp__.py index d7758ddb2..fe8b7472c 100644 --- a/partner_contact_birthdate/__openerp__.py +++ b/partner_contact_birthdate/__openerp__.py @@ -1,25 +1,12 @@ # -*- coding: utf-8 -*- - -# Odoo, Open Source Management Solution -# Copyright (C) 2014-2015 Grupo ESOC -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# Copyright 2014-2015 Grupo ESOC +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Contact's birthdate", - "version": "8.0.1.0.0", - "author": "Odoo Community Association (OCA)", + "version": "9.0.1.0.0", + "author": "Jairo Llopis," + "Odoo Community Association (OCA)", "category": "Customer Relationship Management", "website": "https://odoo-community.org/", "depends": [ @@ -28,4 +15,5 @@ "data": [ "views/res_partner.xml", ], + 'installable': True, } diff --git a/partner_contact_birthdate/data/res_partner.yml b/partner_contact_birthdate/data/res_partner.yml index 2b3d5efe9..d6be2f47e 100644 --- a/partner_contact_birthdate/data/res_partner.yml +++ b/partner_contact_birthdate/data/res_partner.yml @@ -1,19 +1,5 @@ # -*- coding: utf-8 -*- - -# Odoo, Open Source Management Solution # Copyright (C) 2014-2015 Grupo ESOC -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - !function {model: res.partner, name: _birthdate_install} diff --git a/partner_contact_birthdate/models/__init__.py b/partner_contact_birthdate/models/__init__.py new file mode 100644 index 000000000..bc4712911 --- /dev/null +++ b/partner_contact_birthdate/models/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright 2014-2015 Grupo ESOC +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import res_partner diff --git a/partner_contact_birthdate/models.py b/partner_contact_birthdate/models/res_partner.py similarity index 65% rename from partner_contact_birthdate/models.py rename to partner_contact_birthdate/models/res_partner.py index 2686fed6d..d98771922 100644 --- a/partner_contact_birthdate/models.py +++ b/partner_contact_birthdate/models/res_partner.py @@ -1,21 +1,6 @@ # -*- coding: utf-8 -*- - -# Odoo, Open Source Management Solution # Copyright (C) 2014-2015 Grupo ESOC -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . - +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from openerp import _, api, fields, models import logging diff --git a/partner_contact_birthdate/tests/__init__.py b/partner_contact_birthdate/tests/__init__.py index 73d8cb813..90bda5ac1 100644 --- a/partner_contact_birthdate/tests/__init__.py +++ b/partner_contact_birthdate/tests/__init__.py @@ -1,19 +1,4 @@ # -*- coding: utf-8 -*- - -# Odoo, Open Source Management Solution # Copyright (C) 2014-2015 Grupo ESOC -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . - +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import test_birthdate diff --git a/partner_contact_birthdate/tests/test_birthdate.py b/partner_contact_birthdate/tests/test_birthdate.py index 1782d3a40..7cfa2e695 100644 --- a/partner_contact_birthdate/tests/test_birthdate.py +++ b/partner_contact_birthdate/tests/test_birthdate.py @@ -1,20 +1,6 @@ # -*- coding: utf-8 -*- - -# Odoo, Open Source Management Solution # Copyright (C) 2014-2015 Grupo ESOC -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from openerp import fields from openerp.tests.common import TransactionCase diff --git a/partner_contact_birthdate/views/res_partner.xml b/partner_contact_birthdate/views/res_partner.xml index 5f0374dd4..49c636171 100644 --- a/partner_contact_birthdate/views/res_partner.xml +++ b/partner_contact_birthdate/views/res_partner.xml @@ -1,6 +1,8 @@ - - + + + Birthdate Date field @@ -15,5 +17,4 @@ - - +