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=''