diff --git a/golem_activity/models/golem_activity.py b/golem_activity/models/golem_activity.py index 6ad49ca..7664279 100644 --- a/golem_activity/models/golem_activity.py +++ b/golem_activity/models/golem_activity.py @@ -30,7 +30,6 @@ 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' @@ -47,8 +46,6 @@ class GolemActivity(models.Model): full_name = fields.Char('Name', compute='_compute_full_name', store=True, index=True) - display_date = fields.Boolean('Display date?', default=True) - @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 1f57ed0..0912382 100644 --- a/golem_activity/views/golem_activity_views.xml +++ b/golem_activity/views/golem_activity_views.xml @@ -59,14 +59,10 @@ along with this program. If not, see . attrs="{'invisible': [('is_recurrent', '=', False)]}" /> - + attrs="{'invisible': [('is_recurrent', '=', True)]}" /> + attrs="{'invisible': [('is_recurrent', '=', True)]}" />