| 1 |
from odoo import models |
| 2 |
|
| 3 |
|
| 4 |
class EventEventTicket(models.Model): |
| 5 |
_inherit = 'event.event.ticket' |
| 6 |
_order = "event_id, sequence, price, name, id" |
| 7 |
|
| 8 |
def _get_ticket_multiline_description(self): |
| 9 |
""" If people set a description on their product it has more priority |
| 10 |
than the ticket name itself for the SO description. """ |
| 11 |
self.ensure_one() |
| 12 |
if self.product_id.description_sale: |
| 13 |
return '%s\n%s' % (self.product_id.description_sale, self.event_id.display_name) |
| 14 |
return super()._get_ticket_multiline_description() |