diff --git a/golem_activity/i18n/fr.po b/golem_activity/i18n/fr.po index 14af73c..89b492b 100644 --- a/golem_activity/i18n/fr.po +++ b/golem_activity/i18n/fr.po @@ -461,8 +461,8 @@ msgstr "Prix de vente" #. module: golem_activity #: field:golem.activity,season_id:0 -msgid "Seasons" -msgstr "Saisons" +msgid "Season" +msgstr "Saison" #. module: golem_activity #: help:golem.activity,categ_id:0 diff --git a/golem_activity/models/golem_activity.py b/golem_activity/models/golem_activity.py index a6d6a53..8bf7ec9 100644 --- a/golem_activity/models/golem_activity.py +++ b/golem_activity/models/golem_activity.py @@ -32,12 +32,16 @@ class GolemActivity(models.Model): _inherits = {'product.template': 'product_id'} _rec_name = 'activity_name' - season_id = fields.Many2one('golem.season', string='Seasons', - required=True) + # Copy the default code + default_code = fields.Char(copy=True) + + # Own fields + season_id = fields.Many2one('golem.season', string='Season', + copy=False, required=True) animator_id = fields.Many2one('res.partner', string='Animator', domain=[('is_company', '=', False)]) - date_start = fields.Date('Start date') - date_end = fields.Date('End date') + date_start = fields.Date('Start date', copy=False) + date_end = fields.Date('End date', copy=False) @api.constrains('date_start', 'date_end') def _check_period(self): diff --git a/golem_activity/views/golem_activity_view.xml b/golem_activity/views/golem_activity_view.xml index 28c9a58..be32f98 100644 --- a/golem_activity/views/golem_activity_view.xml +++ b/golem_activity/views/golem_activity_view.xml @@ -74,6 +74,20 @@ along with this program. If not, see . + + + GOLEM Activity Tree/List + golem.activity + + + + + + + + + + GOLEM Activity Filters @@ -81,6 +95,7 @@ along with this program. If not, see . + @@ -92,7 +107,6 @@ along with this program. If not, see . - GOLEM Activities