From 485a45f217c5add6985d8a4472dc8fe61e00578b Mon Sep 17 00:00:00 2001 From: michel Date: Wed, 10 Jan 2018 21:51:39 +0100 Subject: [PATCH] [TPM] Membership type -> Link season --- golem_season/models/golem_season.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/golem_season/models/golem_season.py b/golem_season/models/golem_season.py index 7796569..be94f66 100644 --- a/golem_season/models/golem_season.py +++ b/golem_season/models/golem_season.py @@ -29,7 +29,10 @@ class GolemSeason(models.Model): name = fields.Char('Season name', copy=False) - membership_id = fields.Many2one('product.product', 'Membership type') + membership_id = fields.Many2one('product.template', 'Membership type', + domain="[('membership', '=', True)]" ) + + member_counter = fields.Integer('Counter for member number generation', readonly=True, default=1) date_start = fields.Date('Period start')