[IMP] base_comment_template: allow to select rendering engine in comment template

This commit is contained in:
Jesús Alan Ramos Rodríguez
2023-08-29 07:52:47 -06:00
parent 3414ea777b
commit 644a243e57
3 changed files with 13 additions and 2 deletions

View File

@@ -72,6 +72,16 @@ class BaseCommentTemplate(models.Model):
sequence = fields.Integer(
required=True, default=10, help="The smaller number = The higher priority"
)
engine = fields.Selection(
selection=[
("inline_template", "Inline Template"),
("qweb", "QWeb"),
("qweb_view", "QWeb View"),
],
required=True,
default="inline_template",
help="This field allows to select the engine to use for rendering the template.",
)
def _get_ir_model_items(self, models):
return (