[IMP][I18N]GOLEM Season : linked subscription better with m2m widget

This commit is contained in:
Fabien BOURGEOIS 2018-08-27 11:50:10 +02:00
parent 27235e0b3f
commit 29792a7712
4 changed files with 10 additions and 10 deletions

View File

@ -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.1', 'version': '10.0.1.2.2',
'category': 'GOLEM', 'category': 'GOLEM',
'author': 'Fabien Bourgeois', 'author': 'Fabien Bourgeois',
'license': 'AGPL-3', 'license': 'AGPL-3',

View File

@ -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-01 08:27+0000\n" "POT-Creation-Date: 2018-08-27 09:48+0000\n"
"PO-Revision-Date: 2018-08-01 10:28+0200\n" "PO-Revision-Date: 2018-08-27 11:49+0200\n"
"Last-Translator: <>\n" "Last-Translator: <>\n"
"Language-Team: \n" "Language-Team: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
@ -113,7 +113,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 "Membership types" msgstr "Adhésions liées"
#. 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
@ -162,13 +162,13 @@ msgstr "Le début de la période est en conflit avec une période existante."
#: code:addons/golem_season/models/golem_season.py:59 #: code:addons/golem_season/models/golem_season.py:59
#, python-format #, python-format
msgid "The date end is required" msgid "The date end is required"
msgstr "The date end is required" msgstr "La date de fin est nécessaire"
#. module: golem_season #. module: golem_season
#: code:addons/golem_season/models/golem_season.py:61 #: code:addons/golem_season/models/golem_season.py:61
#, python-format #, python-format
msgid "The date start is required" msgid "The date start is required"
msgstr "The date start is required" msgstr "La date de début est nécessaire"
#. module: golem_season #. module: golem_season
#: code:addons/golem_season/models/golem_season.py:29 #: code:addons/golem_season/models/golem_season.py:29

View File

@ -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-01 08:27+0000\n" "POT-Creation-Date: 2018-08-27 09:48+0000\n"
"PO-Revision-Date: 2018-08-01 08:27+0000\n" "PO-Revision-Date: 2018-08-27 09:48+0000\n"
"Last-Translator: <>\n" "Last-Translator: <>\n"
"Language-Team: \n" "Language-Team: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!--
Copyright 2016 Fabien Bourgeois <fabien@yaltik.com> Copyright 2016-2018 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
@ -36,7 +36,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<group string="Season"> <group string="Season">
<field name="is_default" invisible="True" /> <field name="is_default" invisible="True" />
<field name="name" attrs="{'required': True}" /> <field name="name" attrs="{'required': True}" />
<field name="membership_ids" widget="many2many_tags" <field name="membership_ids" widget="many2many"
options="{'no_create': True}" /> options="{'no_create': True}" />
<field name="date_start" <field name="date_start"
attrs="{'required': [('date_end', '!=', False)]}" /> attrs="{'required': [('date_end', '!=', False)]}" />