mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[IMP] base_comment_template: allow to select rendering engine in comment template
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user