Public release from ruodoo-project: 19.0 - 2026-05-31 21:19:12 UTC
This commit is contained in:
14
pdf_report_from_docx/models/docx_template.py
Normal file
14
pdf_report_from_docx/models/docx_template.py
Normal file
@ -0,0 +1,14 @@
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class DocxTemplate(models.Model):
|
||||
_inherit = "docx.template"
|
||||
|
||||
docx_output_type = fields.Selection(
|
||||
selection_add=[
|
||||
("pdf", "PDF"),
|
||||
],
|
||||
ondelete={
|
||||
"pdf": "set default",
|
||||
},
|
||||
)
|
||||
Reference in New Issue
Block a user