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