From b9cfe66f798781d14a108874e8ebd66c55663a4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Taymans?= Date: Tue, 14 May 2019 16:58:26 +0200 Subject: [PATCH] [FIX] b_w_shift: Issue with settings There was an issue that shows an error message when trying to modify the settings for shift in the website configuration. This is due to a missing sequence in the database. I don't know why this sequence where not present. But a simple query create it if it doesn't exists. --- beesdoo_website_shift/__openerp__.py | 2 +- .../migrations/9.0.2.1.1/post-migrate.py | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 beesdoo_website_shift/migrations/9.0.2.1.1/post-migrate.py diff --git a/beesdoo_website_shift/__openerp__.py b/beesdoo_website_shift/__openerp__.py index 8f8dfe3..90e4b5d 100644 --- a/beesdoo_website_shift/__openerp__.py +++ b/beesdoo_website_shift/__openerp__.py @@ -16,7 +16,7 @@ 'author': 'Rémy Taymans', 'license': 'AGPL-3', - 'version': '9.0.2.1', + 'version': '9.0.2.1.1', 'website': "https://github.com/beescoop/Obeesdoo", 'category': 'Cooperative management', diff --git a/beesdoo_website_shift/migrations/9.0.2.1.1/post-migrate.py b/beesdoo_website_shift/migrations/9.0.2.1.1/post-migrate.py new file mode 100644 index 0000000..6068a9b --- /dev/null +++ b/beesdoo_website_shift/migrations/9.0.2.1.1/post-migrate.py @@ -0,0 +1,11 @@ +# coding: utf-8 + + +def migrate(cr, version): + """Create a sequence for beesdoo_website_shift_config_settings.""" + cr.execute( + """ + CREATE SEQUENCE IF NOT EXISTS + beesdoo_website_shift_config_settings_id_seq + """ + )