diff --git a/golem_activity/models/golem_activity.py b/golem_activity/models/golem_activity.py index 7664279..b1d0a9d 100644 --- a/golem_activity/models/golem_activity.py +++ b/golem_activity/models/golem_activity.py @@ -30,6 +30,7 @@ class GolemActivityType(models.Model): name = fields.Char('Activity type', required=True, translate=True) is_recurrent = fields.Boolean('Is recurrent?') + class GolemActivity(models.Model): """ GOLEM Activity """ _name = 'golem.activity' @@ -46,6 +47,7 @@ class GolemActivity(models.Model): full_name = fields.Char('Name', compute='_compute_full_name', store=True, index=True) + is_fullseason = fields.Boolean('Not full season?', default=False) @api.multi @api.depends('name', 'default_code') diff --git a/golem_activity/views/golem_activity_views.xml b/golem_activity/views/golem_activity_views.xml index 0912382..e754f6d 100644 --- a/golem_activity/views/golem_activity_views.xml +++ b/golem_activity/views/golem_activity_views.xml @@ -59,10 +59,15 @@ along with this program. If not, see . attrs="{'invisible': [('is_recurrent', '=', False)]}" /> + + + attrs="{'invisible':[('is_recurrent', '=', True), + ('is_fullseason', '=', False)]}" /> + attrs="{'invisible':[('is_recurrent', '=', True), + ('is_fullseason', '=', False)]}" /> @@ -111,8 +116,7 @@ along with this program. If not, see . - +