Odoo modules related to events management
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
607 B

from odoo import models, api
class EventTypeTicket(models.Model):
_inherit = "event.type.ticket"
@api.depends("product_id")
def _compute_description(self):
for ticket in self:
product = ticket.product_id
description_sale = (
product and product.get_product_multiline_description_sale() or False
)
if product and description_sale:
ticket.description = description_sale
# initialize, i.e for embedded tree views
if not ticket.description:
ticket.description = False