From 5b189ab018ff62ac0a766e5345c7647e19a756c0 Mon Sep 17 00:00:00 2001 From: Antonio Esposito Date: Fri, 7 Oct 2016 15:07:05 +0200 Subject: [PATCH 1/2] [10.0][MIGRATION] Migrated module 'date_range' to V10 --- date_range/README.rst | 2 ++ date_range/__manifest__.py | 4 ++-- date_range/models/date_range.py | 6 +++--- date_range/models/date_range_type.py | 2 +- date_range/security/ir.model.access.csv | 4 ++-- date_range/tests/test_date_range.py | 4 ++-- date_range/tests/test_date_range_generator.py | 2 +- date_range/tests/test_date_range_type.py | 2 +- date_range/wizard/date_range_generator.py | 2 +- 9 files changed, 15 insertions(+), 13 deletions(-) diff --git a/date_range/README.rst b/date_range/README.rst index b78b7f320..d0661187b 100644 --- a/date_range/README.rst +++ b/date_range/README.rst @@ -91,6 +91,8 @@ Contributors ------------ * Laurent Mignon +* Andrea Stirpe +* Antonio Esposito Maintainer ---------- diff --git a/date_range/__manifest__.py b/date_range/__manifest__.py index 45751dd7c..6b048952e 100644 --- a/date_range/__manifest__.py +++ b/date_range/__manifest__.py @@ -4,13 +4,13 @@ { "name": "Date Range", "summary": "Manage all kind of date range", - "version": "9.0.1.0.0", + "version": "10.0.1.0.0", "category": "Uncategorized", "website": "https://odoo-community.org/", "author": "ACSONE SA/NV, Odoo Community Association (OCA)", "license": "AGPL-3", "application": False, - 'installable': False, + "installable": True, "depends": [ "web", ], diff --git a/date_range/models/date_range.py b/date_range/models/date_range.py index 91111b450..a7926e6bf 100644 --- a/date_range/models/date_range.py +++ b/date_range/models/date_range.py @@ -2,9 +2,9 @@ # © 2016 ACSONE SA/NV () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from openerp import api, fields, models -from openerp.tools.translate import _ -from openerp.exceptions import ValidationError +from odoo import api, fields, models +from odoo.tools.translate import _ +from odoo.exceptions import ValidationError class DateRange(models.Model): diff --git a/date_range/models/date_range_type.py b/date_range/models/date_range_type.py index 955e6e9b5..119f1ffd4 100644 --- a/date_range/models/date_range_type.py +++ b/date_range/models/date_range_type.py @@ -2,7 +2,7 @@ # © 2016 ACSONE SA/NV () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from openerp import api, fields, models +from odoo import api, fields, models class DateRangeType(models.Model): diff --git a/date_range/security/ir.model.access.csv b/date_range/security/ir.model.access.csv index 2def3c23a..aabe7149d 100644 --- a/date_range/security/ir.model.access.csv +++ b/date_range/security/ir.model.access.csv @@ -1,5 +1,5 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink access_date_range_date_range,date_range.date_range,model_date_range,base.group_user,1,0,0,0 access_date_range_date_range_type,date_range.date_range_type,model_date_range_type,base.group_user,1,0,0,0 -access_date_range_date_range_config,date_range.date_range.config,model_date_range,base.group_configuration,1,1,1,1 -access_date_range_date_range_type_config,date_range.date_range_type.config,model_date_range_type,base.group_configuration,1,1,1,1 \ No newline at end of file +access_date_range_date_range_config,date_range.date_range.config,model_date_range,base.group_system,1,1,1,1 +access_date_range_date_range_type_config,date_range.date_range_type.config,model_date_range_type,base.group_system,1,1,1,1 \ No newline at end of file diff --git a/date_range/tests/test_date_range.py b/date_range/tests/test_date_range.py index 2fefa02b2..32a227d55 100644 --- a/date_range/tests/test_date_range.py +++ b/date_range/tests/test_date_range.py @@ -2,8 +2,8 @@ # © 2016 ACSONE SA/NV () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) -from openerp.tests.common import TransactionCase -from openerp.exceptions import ValidationError +from odoo.tests.common import TransactionCase +from odoo.exceptions import ValidationError class DateRangeTest(TransactionCase): diff --git a/date_range/tests/test_date_range_generator.py b/date_range/tests/test_date_range_generator.py index c268c351c..419d7bcc7 100644 --- a/date_range/tests/test_date_range_generator.py +++ b/date_range/tests/test_date_range_generator.py @@ -2,7 +2,7 @@ # © 2016 ACSONE SA/NV () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)nses/agpl). -from openerp.tests.common import TransactionCase +from odoo.tests.common import TransactionCase from dateutil.rrule import MONTHLY diff --git a/date_range/tests/test_date_range_type.py b/date_range/tests/test_date_range_type.py index 7b4bcf608..0816267f3 100644 --- a/date_range/tests/test_date_range_type.py +++ b/date_range/tests/test_date_range_type.py @@ -2,7 +2,7 @@ # © 2016 ACSONE SA/NV () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) -from openerp.tests.common import TransactionCase +from odoo.tests.common import TransactionCase class DateRangeTypeTest(TransactionCase): diff --git a/date_range/wizard/date_range_generator.py b/date_range/wizard/date_range_generator.py index b778c371c..7abfba99d 100644 --- a/date_range/wizard/date_range_generator.py +++ b/date_range/wizard/date_range_generator.py @@ -2,7 +2,7 @@ # © 2016 ACSONE SA/NV () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from openerp import api, fields, models +from odoo import api, fields, models from dateutil.rrule import (rrule, YEARLY, MONTHLY, From 2b1eccb758f0ca7dbaa72acd3e0b4ef5bab1c837 Mon Sep 17 00:00:00 2001 From: Antonio Esposito Date: Mon, 10 Oct 2016 08:53:31 +0200 Subject: [PATCH 2/2] [FIX] Updated contributor list --- date_range/README.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/date_range/README.rst b/date_range/README.rst index d0661187b..b78b7f320 100644 --- a/date_range/README.rst +++ b/date_range/README.rst @@ -91,8 +91,6 @@ Contributors ------------ * Laurent Mignon -* Andrea Stirpe -* Antonio Esposito Maintainer ----------