[TPM] Membership type -> Link season

This commit is contained in:
michel 2018-01-10 21:51:39 +01:00
parent a3ea12191f
commit 485a45f217

View File

@ -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')