From 2e5b5641256a01077c1cd7e13a623da8c1f5365b Mon Sep 17 00:00:00 2001 From: Elouan Le Bars Date: Thu, 13 Feb 2020 16:30:53 +0100 Subject: [PATCH] [REF] beesdoo_shift : add comment --- beesdoo_shift/models/cooperative_status.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/beesdoo_shift/models/cooperative_status.py b/beesdoo_shift/models/cooperative_status.py index 5b16592..ed88b05 100644 --- a/beesdoo_shift/models/cooperative_status.py +++ b/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) class ResPartner(models.Model): + """ + One2many relationship with CooperativeStatus should + be replaced by inheritance. + """ _inherit = 'res.partner' cooperative_status_ids = fields.One2many('cooperative.status', 'cooperator_id', readonly=True)