[i18n] name of file
This commit is contained in:
parent
1031025b52
commit
156ff6bcd8
@ -2,7 +2,7 @@
|
||||
import base64
|
||||
import logging
|
||||
|
||||
from odoo import api, fields, models
|
||||
from odoo import api, fields, models, _
|
||||
from odoo.exceptions import UserError
|
||||
|
||||
from ..utils.docxtpl import get_document_from_values_stream
|
||||
@ -139,12 +139,12 @@ class ContractWizard(models.TransientModel):
|
||||
number=self.target.name,
|
||||
ext="docx",
|
||||
name=(
|
||||
"Contract"
|
||||
_("Contract")
|
||||
if self.target._name == "res.partner.contract"
|
||||
else (
|
||||
"Annex"
|
||||
_("Annex")
|
||||
if self.target._name == "res.partner.contract.annex"
|
||||
else ("Unknown#")
|
||||
else ("Unknown")
|
||||
)
|
||||
),
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user