[ADD]GOLEM Activity : location char field, audience m2o

This commit is contained in:
Fabien BOURGEOIS 2018-07-17 09:33:56 +02:00
parent 61b2e06bae
commit 5006d2d2b4
7 changed files with 182 additions and 35 deletions

View File

@ -1,6 +1,6 @@
# -*- coding: 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
# it under the terms of the GNU Affero General Public License as
@ -18,7 +18,8 @@
{
'name': 'GOLEM activities',
'summary': 'Extends Odoo products for multi-activity',
'version': '10.0.2.2.0',
'description': 'Extends Odoo products for multi-activity',
'version': '10.0.2.3.0',
'category': 'GOLEM',
'author': 'Fabien Bourgeois, Michel Dessenne',
'license': 'AGPL-3',

View File

@ -34,6 +34,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</record>
<!-- Base data for activities -->
<record model="golem.activity.audience" id="golem_activity_audience_adults">
<field name="name">Adults</field>
</record>
<record model="golem.activity.audience" id="golem_activity_audience_children">
<field name="name">Childrens</field>
</record>
<record model="golem.activity.type" id="golem_activity_type_activity">
<field name="name">Activity</field>
<field name="is_recurrent">1</field>

View File

@ -6,15 +6,14 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-06-12 14:16+0000\n"
"PO-Revision-Date: 2018-06-12 16:17+0200\n"
"POT-Creation-Date: 2018-07-17 07:30+0000\n"
"PO-Revision-Date: 2018-07-17 09:32+0200\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: fr\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"Plural-Forms: \n"
#. module: golem_activity
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_product_variant_count
@ -143,6 +142,11 @@ msgstr "Activité"
msgid "Activity :"
msgstr "Activité :"
#. module: golem_activity
#: model:ir.ui.menu,name:golem_activity.golem_activity_audience_menu_list
msgid "Activity Audiences"
msgstr "Publics des activités"
#. module: golem_activity
#: model:ir.ui.view,arch_db:golem_activity.golem_activity_form
msgid "Activity Name"
@ -164,13 +168,18 @@ msgid "Activity Types"
msgstr "Types d'activité"
#. module: golem_activity
#: code:addons/golem_activity/models/golem_activity.py:131
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_audience_name
msgid "Activity audience"
msgstr "Public"
#. module: golem_activity
#: code:addons/golem_activity/models/golem_activity.py:144
#, python-format
msgid "Activity end date can not be set after linked season end."
msgstr "La date de fin ne peut pas être apprêt la date de fin de la saison."
#. module: golem_activity
#: code:addons/golem_activity/models/golem_activity.py:127
#: code:addons/golem_activity/models/golem_activity.py:140
#, python-format
msgid "Activity start date can not be set before linked season start."
msgstr "La date de début ne peut pas être avant la date de début de la saison."
@ -180,6 +189,11 @@ msgstr "La date de début ne peut pas être avant la date de début de la saison
msgid "Activity type"
msgstr "Type d'activité"
#. module: golem_activity
#: model:golem.activity.audience,name:golem_activity.golem_activity_audience_adults
msgid "Adults"
msgstr "Adultes"
#. module: golem_activity
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_animator_id
msgid "Animator"
@ -190,6 +204,11 @@ msgstr "Intervenant"
msgid "Arts martiaux"
msgstr "Arts martiaux"
#. module: golem_activity
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_audience_id_4516
msgid "Audience"
msgstr "Public"
#. module: golem_activity
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_barcode
msgid "Barcode"
@ -256,6 +275,11 @@ msgstr "Catégories"
msgid "Check if the product is eligible for membership."
msgstr "Cochez si l'article est éligible pour l'adhésion"
#. module: golem_activity
#: model:golem.activity.audience,name:golem_activity.golem_activity_audience_children
msgid "Childrens"
msgstr "Enfants"
#. module: golem_activity
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_color
msgid "Color Index"
@ -282,12 +306,14 @@ msgid "Cost of the product, in the default unit of measure of the product."
msgstr "Le prix de revient calculé est exprimé dans l'unité de mesure par défaut de l'article."
#. module: golem_activity
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_audience_create_uid
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_create_uid
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_type_create_uid
msgid "Created by"
msgstr "Créé par"
#. module: golem_activity
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_audience_create_date
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_create_date
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_type_create_date
msgid "Created on"
@ -354,6 +380,7 @@ msgid "Description"
msgstr "Description"
#. module: golem_activity
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_audience_display_name
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_display_name
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_type_display_name
msgid "Display Name"
@ -370,7 +397,7 @@ msgid "Expense Account"
msgstr "Compte de dépenses"
#. module: golem_activity
#: code:addons/golem_activity/models/golem_activity.py:149
#: code:addons/golem_activity/models/golem_activity.py:162
#: selection:golem.activity,weekday:0
#, python-format
msgid "Friday"
@ -386,6 +413,16 @@ msgstr "Activités"
msgid "GOLEM Activity"
msgstr "Activité"
#. module: golem_activity
#: model:ir.model,name:golem_activity.model_golem_activity_audience
msgid "GOLEM Activity Audience"
msgstr "Public de l'activité"
#. module: golem_activity
#: model:ir.actions.act_window,name:golem_activity.golem_activity_audience_action
msgid "GOLEM Activity Audiences"
msgstr "Publis des activités"
#. module: golem_activity
#: model:ir.model,name:golem_activity.model_golem_activity_type
msgid "GOLEM Activity Type"
@ -417,6 +454,7 @@ msgid "Group By"
msgstr "Grouper par"
#. module: golem_activity
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_audience_id
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_id
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_type_id
msgid "ID"
@ -465,17 +503,20 @@ msgstr "Est récurrent ?"
#. module: golem_activity
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity___last_update
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_audience___last_update
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_type___last_update
msgid "Last Modified on"
msgstr "Dernière Modification le"
#. module: golem_activity
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_audience_write_uid
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_type_write_uid
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_write_uid
msgid "Last Updated by"
msgstr "Dernière mise à jour par"
#. module: golem_activity
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_audience_write_date
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_type_write_date
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_write_date
msgid "Last Updated on"
@ -486,6 +527,11 @@ msgstr "Dernière mise à jour le"
msgid "Linked season"
msgstr "Saison liée"
#. module: golem_activity
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_location
msgid "Location"
msgstr "Lieu"
#. module: golem_activity
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_packaging_ids
msgid "Logistical Units"
@ -517,7 +563,7 @@ msgid "Membership Start Date"
msgstr "Date de début d'adhésion"
#. module: golem_activity
#: code:addons/golem_activity/models/golem_activity.py:145
#: code:addons/golem_activity/models/golem_activity.py:158
#: selection:golem.activity,weekday:0
#, python-format
msgid "Monday"
@ -611,7 +657,7 @@ msgid "Sale Price"
msgstr "Prix de vente"
#. module: golem_activity
#: code:addons/golem_activity/models/golem_activity.py:150
#: code:addons/golem_activity/models/golem_activity.py:163
#: selection:golem.activity,weekday:0
#, python-format
msgid "Saturday"
@ -659,8 +705,8 @@ msgid "Start date"
msgstr "Date de début"
#. module: golem_activity
#: code:addons/golem_activity/models/golem_activity.py:124
#: code:addons/golem_activity/models/golem_activity.py:167
#: code:addons/golem_activity/models/golem_activity.py:137
#: code:addons/golem_activity/models/golem_activity.py:180
#, 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 antérieure à sa fin"
@ -676,7 +722,7 @@ msgid "Stop time"
msgstr "Heure de fin"
#. module: golem_activity
#: code:addons/golem_activity/models/golem_activity.py:151
#: code:addons/golem_activity/models/golem_activity.py:164
#: selection:golem.activity,weekday:0
#, python-format
msgid "Sunday"
@ -707,6 +753,13 @@ msgstr "Ce compte sera utilisé au lieu de celui par défaut pour les factures p
msgid "This account will be used for invoices instead of the default one to value sales for the current product."
msgstr "Ce compte sera utilisé au lieu de celui par défaut pour les factures pour comptabiliser les ventes pour le produit en cours."
#. module: golem_activity
#: code:addons/golem_activity/models/golem_activity.py:40
#: sql_constraint:golem.activity.audience:0
#, python-format
msgid "This activity audience name has already been used."
msgstr "Un public d'activité porte déjà ce nom."
#. module: golem_activity
#: code:addons/golem_activity/models/golem_activity.py:28
#: sql_constraint:golem.activity.type:0
@ -720,7 +773,7 @@ msgid "This field holds the image used as image for the activity."
msgstr "This field holds the image used as image for the activity."
#. module: golem_activity
#: code:addons/golem_activity/models/golem_activity.py:148
#: code:addons/golem_activity/models/golem_activity.py:161
#: selection:golem.activity,weekday:0
#, python-format
msgid "Thursday"
@ -737,7 +790,7 @@ msgid "True"
msgstr "True"
#. module: golem_activity
#: code:addons/golem_activity/models/golem_activity.py:146
#: code:addons/golem_activity/models/golem_activity.py:159
#: selection:golem.activity,weekday:0
#, python-format
msgid "Tuesday"
@ -775,7 +828,7 @@ msgid "Warranty"
msgstr "Garantie"
#. module: golem_activity
#: code:addons/golem_activity/models/golem_activity.py:147
#: code:addons/golem_activity/models/golem_activity.py:160
#: selection:golem.activity,weekday:0
#, python-format
msgid "Wednesday"

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-06-12 14:16+0000\n"
"PO-Revision-Date: 2018-06-12 14:16+0000\n"
"POT-Creation-Date: 2018-07-17 07:30+0000\n"
"PO-Revision-Date: 2018-07-17 07:30+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@ -139,6 +139,11 @@ msgstr ""
msgid "Activity :"
msgstr ""
#. module: golem_activity
#: model:ir.ui.menu,name:golem_activity.golem_activity_audience_menu_list
msgid "Activity Audiences"
msgstr ""
#. module: golem_activity
#: model:ir.ui.view,arch_db:golem_activity.golem_activity_form
msgid "Activity Name"
@ -160,13 +165,18 @@ msgid "Activity Types"
msgstr ""
#. module: golem_activity
#: code:addons/golem_activity/models/golem_activity.py:131
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_audience_name
msgid "Activity audience"
msgstr ""
#. module: golem_activity
#: code:addons/golem_activity/models/golem_activity.py:144
#, python-format
msgid "Activity end date can not be set after linked season end."
msgstr ""
#. module: golem_activity
#: code:addons/golem_activity/models/golem_activity.py:127
#: code:addons/golem_activity/models/golem_activity.py:140
#, python-format
msgid "Activity start date can not be set before linked season start."
msgstr ""
@ -176,6 +186,11 @@ msgstr ""
msgid "Activity type"
msgstr ""
#. module: golem_activity
#: model:golem.activity.audience,name:golem_activity.golem_activity_audience_adults
msgid "Adults"
msgstr ""
#. module: golem_activity
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_animator_id
msgid "Animator"
@ -186,6 +201,11 @@ msgstr ""
msgid "Arts martiaux"
msgstr ""
#. module: golem_activity
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_audience_id_4516
msgid "Audience"
msgstr ""
#. module: golem_activity
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_barcode
msgid "Barcode"
@ -252,6 +272,11 @@ msgstr ""
msgid "Check if the product is eligible for membership."
msgstr ""
#. module: golem_activity
#: model:golem.activity.audience,name:golem_activity.golem_activity_audience_children
msgid "Childrens"
msgstr ""
#. module: golem_activity
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_color
msgid "Color Index"
@ -278,12 +303,14 @@ msgid "Cost of the product, in the default unit of measure of the product."
msgstr ""
#. module: golem_activity
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_audience_create_uid
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_create_uid
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_type_create_uid
msgid "Created by"
msgstr ""
#. module: golem_activity
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_audience_create_date
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_create_date
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_type_create_date
msgid "Created on"
@ -350,6 +377,7 @@ msgid "Description"
msgstr ""
#. module: golem_activity
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_audience_display_name
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_display_name
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_type_display_name
msgid "Display Name"
@ -366,7 +394,7 @@ msgid "Expense Account"
msgstr ""
#. module: golem_activity
#: code:addons/golem_activity/models/golem_activity.py:149
#: code:addons/golem_activity/models/golem_activity.py:162
#: selection:golem.activity,weekday:0
#, python-format
msgid "Friday"
@ -382,6 +410,16 @@ msgstr ""
msgid "GOLEM Activity"
msgstr ""
#. module: golem_activity
#: model:ir.model,name:golem_activity.model_golem_activity_audience
msgid "GOLEM Activity Audience"
msgstr ""
#. module: golem_activity
#: model:ir.actions.act_window,name:golem_activity.golem_activity_audience_action
msgid "GOLEM Activity Audiences"
msgstr ""
#. module: golem_activity
#: model:ir.model,name:golem_activity.model_golem_activity_type
msgid "GOLEM Activity Type"
@ -413,6 +451,7 @@ msgid "Group By"
msgstr ""
#. module: golem_activity
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_audience_id
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_id
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_type_id
msgid "ID"
@ -461,17 +500,20 @@ msgstr ""
#. module: golem_activity
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity___last_update
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_audience___last_update
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_type___last_update
msgid "Last Modified on"
msgstr ""
#. module: golem_activity
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_audience_write_uid
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_type_write_uid
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_write_uid
msgid "Last Updated by"
msgstr ""
#. module: golem_activity
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_audience_write_date
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_type_write_date
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_write_date
msgid "Last Updated on"
@ -482,6 +524,11 @@ msgstr ""
msgid "Linked season"
msgstr ""
#. module: golem_activity
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_location
msgid "Location"
msgstr ""
#. module: golem_activity
#: model:ir.model.fields,field_description:golem_activity.field_golem_activity_packaging_ids
msgid "Logistical Units"
@ -513,7 +560,7 @@ msgid "Membership Start Date"
msgstr ""
#. module: golem_activity
#: code:addons/golem_activity/models/golem_activity.py:145
#: code:addons/golem_activity/models/golem_activity.py:158
#: selection:golem.activity,weekday:0
#, python-format
msgid "Monday"
@ -607,7 +654,7 @@ msgid "Sale Price"
msgstr ""
#. module: golem_activity
#: code:addons/golem_activity/models/golem_activity.py:150
#: code:addons/golem_activity/models/golem_activity.py:163
#: selection:golem.activity,weekday:0
#, python-format
msgid "Saturday"
@ -655,8 +702,8 @@ msgid "Start date"
msgstr ""
#. module: golem_activity
#: code:addons/golem_activity/models/golem_activity.py:124
#: code:addons/golem_activity/models/golem_activity.py:167
#: code:addons/golem_activity/models/golem_activity.py:137
#: code:addons/golem_activity/models/golem_activity.py:180
#, python-format
msgid "Start of the period cannot be after end of the period."
msgstr ""
@ -672,7 +719,7 @@ msgid "Stop time"
msgstr ""
#. module: golem_activity
#: code:addons/golem_activity/models/golem_activity.py:151
#: code:addons/golem_activity/models/golem_activity.py:164
#: selection:golem.activity,weekday:0
#, python-format
msgid "Sunday"
@ -703,6 +750,13 @@ msgstr ""
msgid "This account will be used for invoices instead of the default one to value sales for the current product."
msgstr ""
#. module: golem_activity
#: code:addons/golem_activity/models/golem_activity.py:40
#: sql_constraint:golem.activity.audience:0
#, python-format
msgid "This activity audience name has already been used."
msgstr ""
#. module: golem_activity
#: code:addons/golem_activity/models/golem_activity.py:28
#: sql_constraint:golem.activity.type:0
@ -716,7 +770,7 @@ msgid "This field holds the image used as image for the activity."
msgstr ""
#. module: golem_activity
#: code:addons/golem_activity/models/golem_activity.py:148
#: code:addons/golem_activity/models/golem_activity.py:161
#: selection:golem.activity,weekday:0
#, python-format
msgid "Thursday"
@ -733,7 +787,7 @@ msgid "True"
msgstr ""
#. module: golem_activity
#: code:addons/golem_activity/models/golem_activity.py:146
#: code:addons/golem_activity/models/golem_activity.py:159
#: selection:golem.activity,weekday:0
#, python-format
msgid "Tuesday"
@ -771,7 +825,7 @@ msgid "Warranty"
msgstr ""
#. module: golem_activity
#: code:addons/golem_activity/models/golem_activity.py:147
#: code:addons/golem_activity/models/golem_activity.py:160
#: selection:golem.activity,weekday:0
#, python-format
msgid "Wednesday"

View File

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Fabien Bourgeois <fabien@yaltik.com>
# Copyright 2017-2018 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
@ -31,6 +31,17 @@ class GolemActivityType(models.Model):
is_recurrent = fields.Boolean('Is recurrent?')
class GolemActivityAudience(models.Model):
""" GOLEM Activity Audience """
_name = 'golem.activity.audience'
_description = 'GOLEM Activity Audience'
_sql_constraints = [('golem_activity_audience_name_uniq', 'UNIQUE (name)',
_('This activity audience name has already been used.'))]
name = fields.Char('Activity audience', required=True, translate=True)
class GolemActivity(models.Model):
""" GOLEM Activity """
_name = 'golem.activity'
@ -49,6 +60,8 @@ class GolemActivity(models.Model):
index=True)
is_fullseason = fields.Boolean('Is full season?',
compute='_compute_is_full_season')
location = fields.Char()
audience_id = fields.Many2one('golem.activity.audience', string='Audience')
@api.onchange('is_fullseason')
def onchange_fullseason(self):
@ -88,10 +101,10 @@ class GolemActivity(models.Model):
ondelete='restrict')
is_current = fields.Boolean('Current season?', store=True, default=False,
compute='compute_is_current')
compute='_compute_is_current')
@api.depends('season_id')
def compute_is_current(self):
def _compute_is_current(self):
""" Checks if activity is active for current season """
default_season = self._default_season()
for activity in self:

View File

@ -11,3 +11,5 @@ access_golem_activity_user,Access GOLEM Activity User,model_golem_activity,golem
access_golem_activity_manager,Access GOLEM Activity Manager,model_golem_activity,golem_base.group_golem_manager,1,1,1,1
access_golem_activity_type_user,Access GOLEM Activity Type User,model_golem_activity_type,golem_base.group_golem_user,1,1,1,0
access_golem_activity_type_manager,Access GOLEM Activity Type Manager,model_golem_activity_type,golem_base.group_golem_manager,1,1,1,1
access_golem_activity_audience_user,Access GOLEM Activity Audience User,model_golem_activity_audience,golem_base.group_golem_user,1,1,1,0
access_golem_activity_audience_manager,Access GOLEM Activity Audience Manager,model_golem_activity_audience,golem_base.group_golem_manager,1,1,1,1

1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
11 access_golem_activity_manager Access GOLEM Activity Manager model_golem_activity golem_base.group_golem_manager 1 1 1 1
12 access_golem_activity_type_user Access GOLEM Activity Type User model_golem_activity_type golem_base.group_golem_user 1 1 1 0
13 access_golem_activity_type_manager Access GOLEM Activity Type Manager model_golem_activity_type golem_base.group_golem_manager 1 1 1 1
14 access_golem_activity_audience_user Access GOLEM Activity Audience User model_golem_activity_audience golem_base.group_golem_user 1 1 1 0
15 access_golem_activity_audience_manager Access GOLEM Activity Audience Manager model_golem_activity_audience golem_base.group_golem_manager 1 1 1 1

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2017 Fabien Bourgeois <fabien@yaltik.com>
Copyright 2017-2018 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
@ -40,7 +40,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<group>
<field name="season_id" required="True" />
<field name="animator_id" />
<field name="type_id" required="True" />
<field name="type_id" required="True"
options="{'no_create': True}" />
<field name="audience_id" />
</group>
<group>
<field name="categ_id" required="True" />
@ -68,6 +70,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<field name="date_stop"
attrs="{'invisible':[('is_recurrent', '=', True),
('is_fullseason', '=', True)]}" />
<field name="location" />
</group>
<group name="places">
</group>
@ -131,6 +134,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</tree>
</field>
</record>
<record model="ir.ui.view" id="golem_activity_audience_tree">
<field name="name">GOLEM Activity Audience Tree/List</field>
<field name="model">golem.activity.audience</field>
<field name="arch" type="xml">
<tree editable="top">
<field name="name" />
</tree>
</field>
</record>
<!-- Calendars -->
<record id="golem_activity_calendar" model="ir.ui.view">
@ -177,6 +189,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
context="{'search_default_season_default': True}" />
<act_window id="golem_activity_type_action" name="GOLEM Activity Types"
res_model="golem.activity.type" view_mode="tree" />
<act_window id="golem_activity_audience_action" name="GOLEM Activity Audiences"
res_model="golem.activity.audience" view_mode="tree" />
<record id="product_category_action" model="ir.actions.act_window">
<field name="name">Activities Categories</field>
<field name="res_model">product.category</field>
@ -198,6 +212,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
groups="golem_base.group_golem_manager"
parent="golem_activity_menu_configuration" sequence="5"
action="golem_activity_type_action" />
<menuitem id="golem_activity_audience_menu_list" name="Activity Audiences"
groups="golem_base.group_golem_manager"
parent="golem_activity_menu_configuration" sequence="7"
action="golem_activity_audience_action" />
<menuitem id="product_category_menu" name="Categories"
parent="golem_activity_menu_configuration" sequence="10"
groups="golem_base.group_golem_manager"