[ADD]GOLEM Season : add active boolean
This commit is contained in:
parent
c441499d9d
commit
ab07a57270
@ -1,6 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- 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
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
@ -22,7 +22,7 @@
|
|||||||
- add season with name and period ;
|
- add season with name and period ;
|
||||||
- choose on per default season ;
|
- choose on per default season ;
|
||||||
- link optionnally one or many memberships types''',
|
- link optionnally one or many memberships types''',
|
||||||
'version': '10.0.1.2.3',
|
'version': '10.0.1.3.0',
|
||||||
'category': 'GOLEM',
|
'category': 'GOLEM',
|
||||||
'author': 'Fabien Bourgeois',
|
'author': 'Fabien Bourgeois',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
|
@ -6,8 +6,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 10.0\n"
|
"Project-Id-Version: Odoo Server 10.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2018-08-27 09:48+0000\n"
|
"POT-Creation-Date: 2022-06-14 10:03+0000\n"
|
||||||
"PO-Revision-Date: 2018-08-27 11:49+0200\n"
|
"PO-Revision-Date: 2022-06-14 12:04+0200\n"
|
||||||
"Last-Translator: <>\n"
|
"Last-Translator: <>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
@ -16,11 +16,16 @@ msgstr ""
|
|||||||
"Plural-Forms: \n"
|
"Plural-Forms: \n"
|
||||||
|
|
||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: code:addons/golem_season/models/golem_season.py:93
|
#: code:addons/golem_season/models/golem_season.py:94
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "%s (copy)"
|
msgid "%s (copy)"
|
||||||
msgstr "%s (copie)"
|
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
|
#. module: golem_season
|
||||||
#: model:ir.model.fields,field_description:golem_season.field_golem_season_member_counter
|
#: model:ir.model.fields,field_description:golem_season.field_golem_season_member_counter
|
||||||
msgid "Counter for member number generation"
|
msgid "Counter for member number generation"
|
||||||
@ -37,7 +42,7 @@ msgid "Created on"
|
|||||||
msgstr "Créé le"
|
msgstr "Créé le"
|
||||||
|
|
||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: code:addons/golem_season/models/golem_season.py:76
|
#: code:addons/golem_season/models/golem_season.py:77
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Current period cannot be included into another existing period."
|
msgid "Current period cannot be included into another existing period."
|
||||||
msgstr "La période actuelle est en conflit avec une période existante."
|
msgstr "La période actuelle est en conflit avec une période existante."
|
||||||
@ -63,7 +68,7 @@ msgid "Display Name"
|
|||||||
msgstr "Nom affiché"
|
msgstr "Nom affiché"
|
||||||
|
|
||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: code:addons/golem_season/models/golem_season.py:72
|
#: code:addons/golem_season/models/golem_season.py:73
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "End of the period is in range of an existing period."
|
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."
|
msgstr "La fin de la période est en conflit avec une période existante."
|
||||||
@ -84,6 +89,11 @@ msgstr "Saisons"
|
|||||||
msgid "ID"
|
msgid "ID"
|
||||||
msgstr "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
|
#. module: golem_season
|
||||||
#: model:ir.model.fields,field_description:golem_season.field_golem_season___last_update
|
#: model:ir.model.fields,field_description:golem_season.field_golem_season___last_update
|
||||||
msgid "Last Modified on"
|
msgid "Last Modified on"
|
||||||
@ -113,7 +123,7 @@ msgstr "Activer cette saison par défaut"
|
|||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: model:ir.model.fields,field_description:golem_season.field_golem_season_membership_ids
|
#: model:ir.model.fields,field_description:golem_season.field_golem_season_membership_ids
|
||||||
msgid "Membership types"
|
msgid "Membership types"
|
||||||
msgstr "Adhésions liées"
|
msgstr "Membership types"
|
||||||
|
|
||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: model:ir.model.fields,field_description:golem_season.field_golem_season_date_end
|
#: model:ir.model.fields,field_description:golem_season.field_golem_season_date_end
|
||||||
@ -147,28 +157,28 @@ msgid "Seasons"
|
|||||||
msgstr "Saisons"
|
msgstr "Saisons"
|
||||||
|
|
||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: code:addons/golem_season/models/golem_season.py:63
|
#: code:addons/golem_season/models/golem_season.py:64
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Start of the period cannot be after end of the period."
|
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."
|
msgstr "Le début de la période ne peut être postérieur à sa fin."
|
||||||
|
|
||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: code:addons/golem_season/models/golem_season.py:68
|
#: code:addons/golem_season/models/golem_season.py:69
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Start of the period is in range of an existing period."
|
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."
|
msgstr "Le début de la période est en conflit avec une période existante."
|
||||||
|
|
||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: code:addons/golem_season/models/golem_season.py:59
|
#: code:addons/golem_season/models/golem_season.py:60
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "The date end is required"
|
msgid "The date end is required"
|
||||||
msgstr "La date de fin est nécessaire"
|
msgstr "The date end is required"
|
||||||
|
|
||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: code:addons/golem_season/models/golem_season.py:61
|
#: code:addons/golem_season/models/golem_season.py:62
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "The date start is required"
|
msgid "The date start is required"
|
||||||
msgstr "La date de début est nécessaire"
|
msgstr "The date start is required"
|
||||||
|
|
||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: code:addons/golem_season/models/golem_season.py:29
|
#: 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."
|
msgstr "Ce nom pour la saison a déjà été utilisé. Merci d'en choisir un autre."
|
||||||
|
|
||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: code:addons/golem_season/models/golem_season.py:108
|
#: code:addons/golem_season/models/golem_season.py:109
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "You can't delete the default season"
|
msgid "You can't delete the default season"
|
||||||
msgstr "Vous ne pouvez pas supprimer la saison par défaut"
|
msgstr "Vous ne pouvez pas supprimer la saison par défaut"
|
||||||
|
@ -6,8 +6,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 10.0\n"
|
"Project-Id-Version: Odoo Server 10.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2018-08-27 09:48+0000\n"
|
"POT-Creation-Date: 2022-06-14 10:03+0000\n"
|
||||||
"PO-Revision-Date: 2018-08-27 09:48+0000\n"
|
"PO-Revision-Date: 2022-06-14 10:03+0000\n"
|
||||||
"Last-Translator: <>\n"
|
"Last-Translator: <>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
@ -16,11 +16,16 @@ msgstr ""
|
|||||||
"Plural-Forms: \n"
|
"Plural-Forms: \n"
|
||||||
|
|
||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: code:addons/golem_season/models/golem_season.py:93
|
#: code:addons/golem_season/models/golem_season.py:94
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "%s (copy)"
|
msgid "%s (copy)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: golem_season
|
||||||
|
#: model:ir.model.fields,field_description:golem_season.field_golem_season_active
|
||||||
|
msgid "Active"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: model:ir.model.fields,field_description:golem_season.field_golem_season_member_counter
|
#: model:ir.model.fields,field_description:golem_season.field_golem_season_member_counter
|
||||||
msgid "Counter for member number generation"
|
msgid "Counter for member number generation"
|
||||||
@ -37,7 +42,7 @@ msgid "Created on"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: code:addons/golem_season/models/golem_season.py:76
|
#: code:addons/golem_season/models/golem_season.py:77
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Current period cannot be included into another existing period."
|
msgid "Current period cannot be included into another existing period."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -63,7 +68,7 @@ msgid "Display Name"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: code:addons/golem_season/models/golem_season.py:72
|
#: code:addons/golem_season/models/golem_season.py:73
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "End of the period is in range of an existing period."
|
msgid "End of the period is in range of an existing period."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -84,6 +89,11 @@ msgstr ""
|
|||||||
msgid "ID"
|
msgid "ID"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: golem_season
|
||||||
|
#: model:ir.ui.view,arch_db:golem_season.golem_season_search
|
||||||
|
msgid "Inactive"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: model:ir.model.fields,field_description:golem_season.field_golem_season___last_update
|
#: model:ir.model.fields,field_description:golem_season.field_golem_season___last_update
|
||||||
msgid "Last Modified on"
|
msgid "Last Modified on"
|
||||||
@ -147,25 +157,25 @@ msgid "Seasons"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: code:addons/golem_season/models/golem_season.py:63
|
#: code:addons/golem_season/models/golem_season.py:64
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Start of the period cannot be after end of the period."
|
msgid "Start of the period cannot be after end of the period."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: code:addons/golem_season/models/golem_season.py:68
|
#: code:addons/golem_season/models/golem_season.py:69
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Start of the period is in range of an existing period."
|
msgid "Start of the period is in range of an existing period."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: code:addons/golem_season/models/golem_season.py:59
|
#: code:addons/golem_season/models/golem_season.py:60
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "The date end is required"
|
msgid "The date end is required"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: code:addons/golem_season/models/golem_season.py:61
|
#: code:addons/golem_season/models/golem_season.py:62
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "The date start is required"
|
msgid "The date start is required"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -178,7 +188,7 @@ msgid "This season name has already been used."
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: code:addons/golem_season/models/golem_season.py:108
|
#: code:addons/golem_season/models/golem_season.py:109
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "You can't delete the default season"
|
msgid "You can't delete the default season"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- 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
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# 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.'))]
|
_('This season name has already been used.'))]
|
||||||
|
|
||||||
name = fields.Char('Season name', copy=False, required=True)
|
name = fields.Char('Season name', copy=False, required=True)
|
||||||
|
active = fields.Boolean(default=True)
|
||||||
membership_ids = fields.One2many('product.template', 'membership_season_id',
|
membership_ids = fields.One2many('product.template', 'membership_season_id',
|
||||||
string='Membership types',
|
string='Membership types',
|
||||||
domain=[('membership', '=', True)])
|
domain=[('membership', '=', True)])
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?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
|
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
|
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)]}" />
|
attrs="{'required': [('date_end', '!=', False)]}" />
|
||||||
<field name="date_end"
|
<field name="date_end"
|
||||||
attrs="{'required': [('date_start', '!=', False)]}" />
|
attrs="{'required': [('date_start', '!=', False)]}" />
|
||||||
|
<field name="active" />
|
||||||
</group>
|
</group>
|
||||||
</sheet>
|
</sheet>
|
||||||
</form>
|
</form>
|
||||||
@ -71,6 +72,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<field name="name" />
|
<field name="name" />
|
||||||
<filter name="default_season" string="Default season"
|
<filter name="default_season" string="Default season"
|
||||||
domain="[('is_default', '=', True)]" />
|
domain="[('is_default', '=', True)]" />
|
||||||
|
<separator />
|
||||||
|
<filter name="inactive" string="Inactive"
|
||||||
|
domain="[('active', '=', False)]" />
|
||||||
</search>
|
</search>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
Loading…
Reference in New Issue
Block a user