|
|
@ -48,7 +48,7 @@ class CooperativeStatus(models.Model): |
|
|
|
cooperator_id = fields.Many2one('res.partner') |
|
|
|
active = fields.Boolean(related="cooperator_id.active", store=True, index=True) |
|
|
|
info_session = fields.Boolean('Information Session ?') |
|
|
|
info_session_date = fields.Datetime('Information Session Date') |
|
|
|
info_session_date = fields.Date('Information Session Date') |
|
|
|
super = fields.Boolean("Super Cooperative") |
|
|
|
sr = fields.Integer("Regular shifts counter", default=0) |
|
|
|
sc = fields.Integer("Compensation shifts counter", default=0) |
|
|
@ -436,7 +436,7 @@ class ResPartner(models.Model): |
|
|
|
cooperative_status_ids = fields.One2many('cooperative.status', 'cooperator_id', readonly=True) |
|
|
|
super = fields.Boolean(related='cooperative_status_ids.super', string="Super Cooperative", readonly=True, store=True) |
|
|
|
info_session = fields.Boolean(related='cooperative_status_ids.info_session', string='Information Session ?', readonly=True, store=True) |
|
|
|
info_session_date = fields.Datetime(related='cooperative_status_ids.info_session_date', string='Information Session Date', readonly=True, store=True) |
|
|
|
info_session_date = fields.Date(related='cooperative_status_ids.info_session_date', string='Information Session Date', readonly=True, store=True) |
|
|
|
working_mode = fields.Selection(related='cooperative_status_ids.working_mode', readonly=True, store=True) |
|
|
|
exempt_reason_id = fields.Many2one(related='cooperative_status_ids.exempt_reason_id', readonly=True, store=True) |
|
|
|
state = fields.Selection(related='cooperative_status_ids.status', readonly=True, store=True) |
|
|
|