forked from Yaltik/golem
[IMP]GOLEM Minor : legal guardian only as persons
This commit is contained in:
parent
ab806b3a8b
commit
776d1c9d77
@ -23,7 +23,8 @@ class GolemMember(models.Model):
|
||||
_inherit = 'golem.member'
|
||||
|
||||
ADULT_DURATION = timedelta(days=365*18)
|
||||
legal_guardian = fields.Many2one('res.partner', 'Legal guardian')
|
||||
legal_guardian = fields.Many2one('res.partner', 'Legal guardian',
|
||||
domain="[('is_company', '=', False)]")
|
||||
activities_participation = fields.Boolean('Activities participation?')
|
||||
is_minor = fields.Boolean('Is minor?', compute='_compute_is_minor',
|
||||
store=True, default=False)
|
||||
|
Loading…
x
Reference in New Issue
Block a user