Browse Source

statut inscription

dev-rcn
root 2 years ago
parent
commit
72383c3975
1 changed files with 2 additions and 8 deletions
  1. +2
    -8
      models/booking_event_registration.py

+ 2
- 8
models/booking_event_registration.py View File

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


Loading…
Cancel
Save