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
438 B

from odoo import models, fields
from odoo.tools import is_html_empty
from odoo.tools.translate import html_translate
class EventType(models.Model):
_inherit = "event.type"
description = fields.Html(
string="Description",
translate=html_translate,
sanitize_attributes=False,
sanitize_form=False,
default="",
)
def clear_description(self):
self.write({"description": ""})