From 75cf74080b54bebfb9dd0e378a31ea71d8937ce4 Mon Sep 17 00:00:00 2001 From: Elouan Date: Mon, 9 Sep 2019 18:32:31 +0200 Subject: [PATCH] beesdoo_website_shift : migration to version 10.0 --- beesdoo_website_shift/{__openerp__.py => __manifest__.py} | 0 beesdoo_website_shift/controllers/main.py | 8 ++++---- beesdoo_website_shift/data/res_config_data.xml | 4 ++-- beesdoo_website_shift/models/res_config.py | 2 +- .../views/my_shift_website_templates.xml | 4 ++-- beesdoo_website_shift/views/res_config_views.xml | 4 ++-- beesdoo_website_shift/views/shift_website_templates.xml | 4 ++-- 7 files changed, 13 insertions(+), 13 deletions(-) rename beesdoo_website_shift/{__openerp__.py => __manifest__.py} (100%) diff --git a/beesdoo_website_shift/__openerp__.py b/beesdoo_website_shift/__manifest__.py similarity index 100% rename from beesdoo_website_shift/__openerp__.py rename to beesdoo_website_shift/__manifest__.py diff --git a/beesdoo_website_shift/controllers/main.py b/beesdoo_website_shift/controllers/main.py index 0bbb7ab..f4b0739 100644 --- a/beesdoo_website_shift/controllers/main.py +++ b/beesdoo_website_shift/controllers/main.py @@ -9,11 +9,11 @@ from datetime import datetime, timedelta from itertools import groupby from pytz import timezone, utc -from openerp import http, fields -from openerp.http import request +from odoo import http, fields +from odoo.http import request -from openerp.addons.beesdoo_shift.models.planning import float_to_time -from openerp.addons.beesdoo_shift.models.cooperative_status import PERIOD +from odoo.addons.beesdoo_shift.models.planning import float_to_time +from odoo.addons.beesdoo_shift.models.cooperative_status import PERIOD class WebsiteShiftController(http.Controller): diff --git a/beesdoo_website_shift/data/res_config_data.xml b/beesdoo_website_shift/data/res_config_data.xml index d75440d..c374df2 100644 --- a/beesdoo_website_shift/data/res_config_data.xml +++ b/beesdoo_website_shift/data/res_config_data.xml @@ -3,7 +3,7 @@ Copyright 2017-2018 Rémy Taymans License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> - + beesdoo_website_shift.irregular_shift_limit @@ -38,4 +38,4 @@ 20 - + diff --git a/beesdoo_website_shift/models/res_config.py b/beesdoo_website_shift/models/res_config.py index 04e31c2..f4e408b 100644 --- a/beesdoo_website_shift/models/res_config.py +++ b/beesdoo_website_shift/models/res_config.py @@ -4,7 +4,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from ast import literal_eval -from openerp import fields, models, api +from odoo import fields, models, api PARAMS = [ ('irregular_shift_limit', 'beesdoo_website_shift.irregular_shift_limit'), diff --git a/beesdoo_website_shift/views/my_shift_website_templates.xml b/beesdoo_website_shift/views/my_shift_website_templates.xml index 23da8ab..60261fc 100644 --- a/beesdoo_website_shift/views/my_shift_website_templates.xml +++ b/beesdoo_website_shift/views/my_shift_website_templates.xml @@ -3,7 +3,7 @@ Copyright 2017-2018 Rémy Taymans License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> - + - + diff --git a/beesdoo_website_shift/views/res_config_views.xml b/beesdoo_website_shift/views/res_config_views.xml index 9968a90..62ba035 100644 --- a/beesdoo_website_shift/views/res_config_views.xml +++ b/beesdoo_website_shift/views/res_config_views.xml @@ -3,7 +3,7 @@ Copyright 2017-2018 Rémy Taymans License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> - + @@ -101,4 +101,4 @@ sequence="10"/> - + diff --git a/beesdoo_website_shift/views/shift_website_templates.xml b/beesdoo_website_shift/views/shift_website_templates.xml index bc261f7..b7f3f49 100644 --- a/beesdoo_website_shift/views/shift_website_templates.xml +++ b/beesdoo_website_shift/views/shift_website_templates.xml @@ -3,7 +3,7 @@ Copyright 2017-2018 Rémy Taymans License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> - + @@ -206,4 +206,4 @@ - +