@@ -14,13 +14,6 @@ class SaleOrderLine(models.Model):
|
||||
'event.event.ticket', string='Event Ticket',
|
||||
compute="_compute_event_ticket_id", store=True, readonly=False, precompute=True,
|
||||
help="Choose an event ticket and it will automatically create a registration for this event ticket.")
|
||||
# TODO in master: remove this field, unused anymore
|
||||
event_ok = fields.Boolean(compute='_compute_event_ok')
|
||||
|
||||
@api.depends('product_id.detailed_type')
|
||||
def _compute_event_ok(self):
|
||||
for record in self:
|
||||
record.event_ok = record.product_id.detailed_type == 'event'
|
||||
|
||||
@api.depends('state', 'event_id')
|
||||
def _compute_product_uom_readonly(self):
|
||||
|
||||
Reference in New Issue
Block a user