[FIX] dynamic extension to hard .docx extension
This commit is contained in:
parent
cfc0239fca
commit
d7a76d70e6
@ -512,7 +512,7 @@ class ContractWizard(models.TransientModel):
|
||||
|
||||
attachment_name = "Contract-{number}.{ext}".format(
|
||||
number=self.contract_id.name,
|
||||
ext=self.template.attachment_id.datas_fname.split('.')[-1]
|
||||
ext="docx"
|
||||
)
|
||||
document_as_attachment = self.env['ir.attachment'].create({
|
||||
"name": attachment_name,
|
||||
|
Loading…
x
Reference in New Issue
Block a user