From ab07a57270cb96263ba84ec32518b9c0dd3f0efd Mon Sep 17 00:00:00 2001 From: Fabien BOURGEOIS Date: Tue, 14 Jun 2022 12:04:09 +0200 Subject: [PATCH] [ADD]GOLEM Season : add active boolean --- golem_season/__manifest__.py | 4 +-- golem_season/i18n/fr.po | 36 +++++++++++++++-------- golem_season/i18n/golem_season.pot | 30 ++++++++++++------- golem_season/models/golem_season.py | 3 +- golem_season/views/golem_season_views.xml | 6 +++- 5 files changed, 52 insertions(+), 27 deletions(-) diff --git a/golem_season/__manifest__.py b/golem_season/__manifest__.py index 7b14597..9196655 100644 --- a/golem_season/__manifest__.py +++ b/golem_season/__manifest__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright 2016-2020 Fabien Bourgeois +# Copyright 2016-2022 Fabien Bourgeois # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -22,7 +22,7 @@ - add season with name and period ; - choose on per default season ; - link optionnally one or many memberships types''', - 'version': '10.0.1.2.3', + 'version': '10.0.1.3.0', 'category': 'GOLEM', 'author': 'Fabien Bourgeois', 'license': 'AGPL-3', diff --git a/golem_season/i18n/fr.po b/golem_season/i18n/fr.po index c8887de..00ae1a0 100644 --- a/golem_season/i18n/fr.po +++ b/golem_season/i18n/fr.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-08-27 09:48+0000\n" -"PO-Revision-Date: 2018-08-27 11:49+0200\n" +"POT-Creation-Date: 2022-06-14 10:03+0000\n" +"PO-Revision-Date: 2022-06-14 12:04+0200\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -16,11 +16,16 @@ msgstr "" "Plural-Forms: \n" #. module: golem_season -#: code:addons/golem_season/models/golem_season.py:93 +#: code:addons/golem_season/models/golem_season.py:94 #, python-format msgid "%s (copy)" msgstr "%s (copie)" +#. module: golem_season +#: model:ir.model.fields,field_description:golem_season.field_golem_season_active +msgid "Active" +msgstr "Actif" + #. module: golem_season #: model:ir.model.fields,field_description:golem_season.field_golem_season_member_counter msgid "Counter for member number generation" @@ -37,7 +42,7 @@ msgid "Created on" msgstr "Créé le" #. module: golem_season -#: code:addons/golem_season/models/golem_season.py:76 +#: code:addons/golem_season/models/golem_season.py:77 #, python-format msgid "Current period cannot be included into another existing period." msgstr "La période actuelle est en conflit avec une période existante." @@ -63,7 +68,7 @@ msgid "Display Name" msgstr "Nom affiché" #. module: golem_season -#: code:addons/golem_season/models/golem_season.py:72 +#: code:addons/golem_season/models/golem_season.py:73 #, python-format msgid "End of the period is in range of an existing period." msgstr "La fin de la période est en conflit avec une période existante." @@ -84,6 +89,11 @@ msgstr "Saisons" msgid "ID" msgstr "ID" +#. module: golem_season +#: model:ir.ui.view,arch_db:golem_season.golem_season_search +msgid "Inactive" +msgstr "Archivée" + #. module: golem_season #: model:ir.model.fields,field_description:golem_season.field_golem_season___last_update msgid "Last Modified on" @@ -113,7 +123,7 @@ msgstr "Activer cette saison par défaut" #. module: golem_season #: model:ir.model.fields,field_description:golem_season.field_golem_season_membership_ids msgid "Membership types" -msgstr "Adhésions liées" +msgstr "Membership types" #. module: golem_season #: model:ir.model.fields,field_description:golem_season.field_golem_season_date_end @@ -147,28 +157,28 @@ msgid "Seasons" msgstr "Saisons" #. module: golem_season -#: code:addons/golem_season/models/golem_season.py:63 +#: code:addons/golem_season/models/golem_season.py:64 #, python-format msgid "Start of the period cannot be after end of the period." msgstr "Le début de la période ne peut être postérieur à sa fin." #. module: golem_season -#: code:addons/golem_season/models/golem_season.py:68 +#: code:addons/golem_season/models/golem_season.py:69 #, python-format msgid "Start of the period is in range of an existing period." msgstr "Le début de la période est en conflit avec une période existante." #. module: golem_season -#: code:addons/golem_season/models/golem_season.py:59 +#: code:addons/golem_season/models/golem_season.py:60 #, python-format msgid "The date end is required" -msgstr "La date de fin est nécessaire" +msgstr "The date end is required" #. module: golem_season -#: code:addons/golem_season/models/golem_season.py:61 +#: code:addons/golem_season/models/golem_season.py:62 #, python-format msgid "The date start is required" -msgstr "La date de début est nécessaire" +msgstr "The date start is required" #. module: golem_season #: code:addons/golem_season/models/golem_season.py:29 @@ -178,7 +188,7 @@ msgid "This season name has already been used." msgstr "Ce nom pour la saison a déjà été utilisé. Merci d'en choisir un autre." #. module: golem_season -#: code:addons/golem_season/models/golem_season.py:108 +#: code:addons/golem_season/models/golem_season.py:109 #, python-format msgid "You can't delete the default season" msgstr "Vous ne pouvez pas supprimer la saison par défaut" diff --git a/golem_season/i18n/golem_season.pot b/golem_season/i18n/golem_season.pot index dd0faf8..92d5279 100644 --- a/golem_season/i18n/golem_season.pot +++ b/golem_season/i18n/golem_season.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-08-27 09:48+0000\n" -"PO-Revision-Date: 2018-08-27 09:48+0000\n" +"POT-Creation-Date: 2022-06-14 10:03+0000\n" +"PO-Revision-Date: 2022-06-14 10:03+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -16,11 +16,16 @@ msgstr "" "Plural-Forms: \n" #. module: golem_season -#: code:addons/golem_season/models/golem_season.py:93 +#: code:addons/golem_season/models/golem_season.py:94 #, python-format msgid "%s (copy)" msgstr "" +#. module: golem_season +#: model:ir.model.fields,field_description:golem_season.field_golem_season_active +msgid "Active" +msgstr "" + #. module: golem_season #: model:ir.model.fields,field_description:golem_season.field_golem_season_member_counter msgid "Counter for member number generation" @@ -37,7 +42,7 @@ msgid "Created on" msgstr "" #. module: golem_season -#: code:addons/golem_season/models/golem_season.py:76 +#: code:addons/golem_season/models/golem_season.py:77 #, python-format msgid "Current period cannot be included into another existing period." msgstr "" @@ -63,7 +68,7 @@ msgid "Display Name" msgstr "" #. module: golem_season -#: code:addons/golem_season/models/golem_season.py:72 +#: code:addons/golem_season/models/golem_season.py:73 #, python-format msgid "End of the period is in range of an existing period." msgstr "" @@ -84,6 +89,11 @@ msgstr "" msgid "ID" msgstr "" +#. module: golem_season +#: model:ir.ui.view,arch_db:golem_season.golem_season_search +msgid "Inactive" +msgstr "" + #. module: golem_season #: model:ir.model.fields,field_description:golem_season.field_golem_season___last_update msgid "Last Modified on" @@ -147,25 +157,25 @@ msgid "Seasons" msgstr "" #. module: golem_season -#: code:addons/golem_season/models/golem_season.py:63 +#: code:addons/golem_season/models/golem_season.py:64 #, python-format msgid "Start of the period cannot be after end of the period." msgstr "" #. module: golem_season -#: code:addons/golem_season/models/golem_season.py:68 +#: code:addons/golem_season/models/golem_season.py:69 #, python-format msgid "Start of the period is in range of an existing period." msgstr "" #. module: golem_season -#: code:addons/golem_season/models/golem_season.py:59 +#: code:addons/golem_season/models/golem_season.py:60 #, python-format msgid "The date end is required" msgstr "" #. module: golem_season -#: code:addons/golem_season/models/golem_season.py:61 +#: code:addons/golem_season/models/golem_season.py:62 #, python-format msgid "The date start is required" msgstr "" @@ -178,7 +188,7 @@ msgid "This season name has already been used." msgstr "" #. module: golem_season -#: code:addons/golem_season/models/golem_season.py:108 +#: code:addons/golem_season/models/golem_season.py:109 #, python-format msgid "You can't delete the default season" msgstr "" diff --git a/golem_season/models/golem_season.py b/golem_season/models/golem_season.py index 661312b..bbecf7a 100644 --- a/golem_season/models/golem_season.py +++ b/golem_season/models/golem_season.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright 2016-2018 Fabien Bourgeois +# Copyright 2016-2022 Fabien Bourgeois # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -29,6 +29,7 @@ class GolemSeason(models.Model): _('This season name has already been used.'))] name = fields.Char('Season name', copy=False, required=True) + active = fields.Boolean(default=True) membership_ids = fields.One2many('product.template', 'membership_season_id', string='Membership types', domain=[('membership', '=', True)]) diff --git a/golem_season/views/golem_season_views.xml b/golem_season/views/golem_season_views.xml index c22428f..b89601e 100644 --- a/golem_season/views/golem_season_views.xml +++ b/golem_season/views/golem_season_views.xml @@ -1,7 +1,7 @@