|  | @ -140,14 +140,8 @@ class EventRegistration(models.Model): | 
														
													
														
															
																|  |  |  |  |  |  | 
														
													
														
															
																|  |  | if rec.payment_status in('paid','down payment paid'): |  |  | if rec.payment_status in('paid','down payment paid'): | 
														
													
														
															
																|  |  | rec.state='open' |  |  | 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): |  |  | def _compute_kanban_color(self): | 
														
													
														
															
																|  |  | for rec in self: |  |  | for rec in self: | 
														
													
														
															
																|  |  | rec.kanban_color='' |  |  | rec.kanban_color='' | 
														
													
												
													
														
															
																|  | 
 |