From 62741ca650be52b5b4e468c082904de27e0b63a5 Mon Sep 17 00:00:00 2001 From: michel Date: Thu, 1 Feb 2018 15:38:44 +0100 Subject: [PATCH] / --- golem_activity/models/golem_activity.py | 3 --- golem_activity/views/golem_activity_views.xml | 8 ++------ 2 files changed, 2 insertions(+), 9 deletions(-) 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)]}" />