Browse Source

[MIG] beesdoo_easy_my_coop: Migration to 10.0

pull/134/head
Cyrille Bollu 4 years ago
committed by Rémy Taymans
parent
commit
6259df1110
  1. 2
      beesdoo_easy_my_coop/__manifest__.py
  2. 6
      beesdoo_easy_my_coop/controllers/main.py
  3. 9
      beesdoo_easy_my_coop/migrations/9.0.1.1.3/pre-migration.py
  4. 2
      beesdoo_easy_my_coop/models/res_company.py
  5. 2
      beesdoo_easy_my_coop/models/res_partner.py
  6. 2
      beesdoo_easy_my_coop/models/subscription_request.py
  7. 2
      beesdoo_easy_my_coop/wizards/beesdoo_shift_subscribe.py

2
beesdoo_easy_my_coop/__openerp__.py → beesdoo_easy_my_coop/__manifest__.py

@ -16,7 +16,7 @@
# Check https://github.com/odoo/odoo/blob/master/openerp/addons/base/module/module_data.xml
# for the full list
'category': 'Cooperative management',
'version': '9.0.1.1.3',
'version': '10.0.1.0.0',
# any module necessary for this one to work correctly
'depends': ['beesdoo_base', 'beesdoo_shift', 'easy_my_coop', 'easy_my_coop_eater'],

6
beesdoo_easy_my_coop/controllers/main.py

@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-
from openerp import http
from openerp.http import request
from odoo import http
from odoo.http import request
from openerp.addons.easy_my_coop.controllers.main import WebsiteSubscription as Base
from odoo.addons.easy_my_coop.controllers.main import WebsiteSubscription as Base
class WebsiteSubscription(Base):

9
beesdoo_easy_my_coop/migrations/9.0.1.1.3/pre-migration.py

@ -1,9 +0,0 @@
# -*- coding: utf-8 -*-
def migrate(cr, version):
if not version:
return
cr.execute("UPDATE res_company "
"SET info_session_confirmation_required = FALSE "
"WHERE display_info_session_confirmation = FALSE")

2
beesdoo_easy_my_coop/models/res_company.py

@ -2,7 +2,7 @@
# Copyright 2019 Coop IT Easy SCRLfs
# 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 ResCompany(models.Model):

2
beesdoo_easy_my_coop/models/res_partner.py

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from openerp import models, fields, api, _
from odoo import models, fields, api, _
class Partner(models.Model):
_inherit = 'res.partner'

2
beesdoo_easy_my_coop/models/subscription_request.py

@ -2,7 +2,7 @@
# Copyright 2019 Coop IT Easy SCRLfs
# 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 SubscriptionRequest(models.Model):

2
beesdoo_easy_my_coop/wizards/beesdoo_shift_subscribe.py

@ -2,7 +2,7 @@
# Copyright 2019 Coop IT Easy SCRLfs
# 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 Subscribe(models.TransientModel):

Loading…
Cancel
Save