Public release from ruodoo-project: 19.0 - 2026-05-31 21:19:12 UTC
This commit is contained in:
13
docx_report/models/docx_template_mixin.py
Normal file
13
docx_report/models/docx_template_mixin.py
Normal file
@ -0,0 +1,13 @@
|
||||
from odoo import models, fields, _
|
||||
|
||||
|
||||
class DocxTemplateMixin(models.AbstractModel):
|
||||
_name = "docx.template.mixin"
|
||||
_description = "Mixin: DOCX template link"
|
||||
|
||||
docx_template_id = fields.Many2one(
|
||||
"docx.template",
|
||||
string=_("DOCX шаблон"),
|
||||
domain=[("global_template", "=", False)],
|
||||
help="DOCX-шаблон, используемый по умолчанию для данного объекта.",
|
||||
)
|
||||
Reference in New Issue
Block a user