[ADD]GOLEM Season : add active boolean

This commit is contained in:
Fabien BOURGEOIS 2022-06-14 12:04:09 +02:00
parent c441499d9d
commit ab07a57270
5 changed files with 52 additions and 27 deletions

View File

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2016-2020 Fabien Bourgeois <fabien@yaltik.com>
# Copyright 2016-2022 Fabien Bourgeois <fabien@yaltik.com>
#
# 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',

View File

@ -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"

View File

@ -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 ""

View File

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2016-2018 Fabien Bourgeois <fabien@yaltik.com>
# Copyright 2016-2022 Fabien Bourgeois <fabien@yaltik.com>
#
# 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)])

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2016-2020 Fabien Bourgeois <fabien@yaltik.com>
Copyright 2016-2022 Fabien Bourgeois <fabien@yaltik.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
@ -42,6 +42,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
attrs="{'required': [('date_end', '!=', False)]}" />
<field name="date_end"
attrs="{'required': [('date_start', '!=', False)]}" />
<field name="active" />
</group>
</sheet>
</form>
@ -71,6 +72,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<field name="name" />
<filter name="default_season" string="Default season"
domain="[('is_default', '=', True)]" />
<separator />
<filter name="inactive" string="Inactive"
domain="[('active', '=', False)]" />
</search>
</field>
</record>