Browse Source

[FIX] beesdoo_shift : Error when saving a temporary exempt

Add missing sequence in database.
9.0-hide-countdown-date-unsuscribed
Elouan Le Bars 5 years ago
committed by Rémy Taymans
parent
commit
cd19bb1081
  1. 2
      beesdoo_shift/__openerp__.py
  2. 11
      beesdoo_shift/migrations/9.0.1.2.1/post-migrate.py

2
beesdoo_shift/__openerp__.py

@ -13,7 +13,7 @@
'website': "https://github.com/beescoop/Obeesdoo",
'category': 'Cooperative management',
'version': '9.0.1.2.0',
'version': '9.0.1.2.1',
'depends': ['beesdoo_base'],

11
beesdoo_shift/migrations/9.0.1.2.1/post-migrate.py

@ -0,0 +1,11 @@
# coding: utf-8
def migrate(cr, version):
"""Fix bug occuring when trying to save a temporary exempt
(missing sequence in database). """
cr.execute(
"""
CREATE SEQUENCE IF NOT EXISTS beesdoo_website_shift_config_settings_id_seq
"""
)
Loading…
Cancel
Save