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

  1. from odoo import models, fields
  2. from odoo.tools import is_html_empty
  3. from odoo.tools.translate import html_translate
  4. class EventType(models.Model):
  5. _inherit = "event.type"
  6. description = fields.Html(
  7. string="Description",
  8. translate=html_translate,
  9. sanitize_attributes=False,
  10. sanitize_form=False,
  11. default="",
  12. )
  13. def clear_description(self):
  14. self.write({"description": ""})