[IMP] translate of the phrase
This commit is contained in:
parent
bfdde71dc9
commit
210226d62f
@ -155,10 +155,9 @@ class ContractWizard(models.TransientModel):
|
|||||||
|
|
||||||
if self.target._name == "res.partner.contract":
|
if self.target._name == "res.partner.contract":
|
||||||
contract = self.target
|
contract = self.target
|
||||||
attachment_name = "{type} {number} {from_} {date}".format(
|
attachment_name = _("{type} {number} from {date}").format(
|
||||||
type=dict(self.document_template._fields['document_type'].selection).get(self.document_template.document_type),
|
type=dict(self.document_template._fields['document_type'].selection).get(self.document_template.document_type),
|
||||||
number=contract.name,
|
number=contract.name,
|
||||||
from_=_("from"),
|
|
||||||
date=contract.get_date().strftime("%d.%m.%Y"),
|
date=contract.get_date().strftime("%d.%m.%Y"),
|
||||||
)
|
)
|
||||||
elif self.target._name == "res.partner.contract.annex":
|
elif self.target._name == "res.partner.contract.annex":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user