Browse Source

[REF] beesdoo_shift : add comment

pull/143/head
Elouan Le Bars 5 years ago
parent
commit
2e5b564125
  1. 4
      beesdoo_shift/models/cooperative_status.py

4
beesdoo_shift/models/cooperative_status.py

@ -446,6 +446,10 @@ class ShiftCronJournal(models.Model):
self.sudo().env['cooperative.status']._cron_compute_counter_irregular(today=self.date) self.sudo().env['cooperative.status']._cron_compute_counter_irregular(today=self.date)
class ResPartner(models.Model): class ResPartner(models.Model):
"""
One2many relationship with CooperativeStatus should
be replaced by inheritance.
"""
_inherit = 'res.partner' _inherit = 'res.partner'
cooperative_status_ids = fields.One2many('cooperative.status', 'cooperator_id', readonly=True) cooperative_status_ids = fields.One2many('cooperative.status', 'cooperator_id', readonly=True)

Loading…
Cancel
Save