[TPM] Membership type -> Link season

This commit is contained in:
michel 2018-01-10 17:48:23 +01:00
parent 66c4f8f75a
commit 52137f3829
2 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,8 @@ class GolemSeason(models.Model):
_('This season name has already been used.'))]
name = fields.Char('Season name', copy=False)
membership_id = fields.Many2one('product.product', 'Membership type')
member_counter = fields.Integer('Counter for member number generation',
readonly=True, default=1)
date_start = fields.Date('Period start')

View File

@ -35,6 +35,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</div>
<group string="Season">
<field name="is_default" invisible="True" />
<field name="membership_id" />
<field name="name" />
<field name="date_start" />
<field name="date_end" />