forked from Yaltik/golem
Add required fields
This commit is contained in:
parent
97f5b25534
commit
6780f279ce
@ -24,13 +24,16 @@ class GolemMemberHistory(models.Model):
|
|||||||
""" GOLEM Member History """
|
""" GOLEM Member History """
|
||||||
_name = 'golem.member.history'
|
_name = 'golem.member.history'
|
||||||
_description = 'GOLEM Member History Management'
|
_description = 'GOLEM Member History Management'
|
||||||
|
_order = "season_id desc, id desc"
|
||||||
|
|
||||||
member_id = fields.Many2one('golem.member', required=True, auto_join=True,
|
member_id = fields.Many2one('golem.member', required=True, auto_join=True,
|
||||||
ondelete="cascade")
|
ondelete="cascade")
|
||||||
season_id = fields.Many2one('golem.season', required=True, auto_join=True,
|
season_id = fields.Many2one('golem.season', required=True, auto_join=True,
|
||||||
ondelete="cascade")
|
ondelete="cascade")
|
||||||
gender = fields.Selection([('male', _('Male')), ('female', _('Female'))])
|
gender = fields.Selection([('male', _('Male')), ('female', _('Female'))])
|
||||||
area_id = fields.Many2one('golem.partner.area', index=True, auto_join=True,
|
area_id = fields.Many2one('golem.partner.area', string='Area', ondelete="cascade")
|
||||||
string='Area', ondelete="cascade")
|
|
||||||
city = fields.Char()
|
city = fields.Char()
|
||||||
family_quotient = fields.Monetary()
|
family_quotient = fields.Monetary()
|
||||||
|
currency_id = fields.Many2one(related="member_id.currency_id", string="Currency", readonly=True)
|
||||||
|
pcs_id = fields.Many2one('golem.pcs', string='PCS')
|
||||||
|
nationality_id = fields.Many2one('res.country', string="Nationality", ondelete="cascade")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user