From 72383c3975466642386476441e7311652b2cc027 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 18 Nov 2022 13:39:02 +0100 Subject: [PATCH] statut inscription --- models/booking_event_registration.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/models/booking_event_registration.py b/models/booking_event_registration.py index df83bb5..4e87981 100755 --- a/models/booking_event_registration.py +++ b/models/booking_event_registration.py @@ -140,14 +140,8 @@ class EventRegistration(models.Model): if rec.payment_status in('paid','down payment paid'): rec.state='open' - else: - rec.state='draft' - - - # @api.onchange('payment_status') - # def _onchange_payment_status(self): - # if self.payment_status=='paid' :self.state='open' - + + def _compute_kanban_color(self): for rec in self: rec.kanban_color=''