[ADD] name of template
This commit is contained in:
parent
1d955a4b00
commit
0d32f712a2
@ -102,6 +102,7 @@ class PrintTemplateContract(models.Model):
|
||||
_name = "res.partner.template.print.contract"
|
||||
_description = "Print Template Contract"
|
||||
|
||||
name = fields.Char(related="attachment_id.name",)
|
||||
attachment_id = fields.Many2one(
|
||||
"ir.attachment", string="Template Attachment", required=True,
|
||||
)
|
||||
@ -112,6 +113,7 @@ class PrintTemplateAnnex(models.Model):
|
||||
_name = "res.partner.template.print.annex"
|
||||
_description = "Print Template Contract Annex"
|
||||
|
||||
name = fields.Char(related="attachment_id.name",)
|
||||
attachment_id = fields.Many2one(
|
||||
"ir.attachment", string="Template Attachment", required=True,
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user