[16.0][IMP] contract and contract_sale_generation: Add translations

This commit is contained in:
Alicia Garzo Moreno
2024-03-11 14:42:38 +01:00
committed by Christopher Rogos
parent d22ee1cb34
commit 67ee8444bc
2 changed files with 8 additions and 5 deletions

View File

@@ -2427,6 +2427,13 @@ msgstr ""
"{{ object.company_id.name }} Contrato (Ref {{ object.name or 'n/a' }}) - "
"Modificaciones"
#. module: contract
#: model:ir.model.fields.selection,name:contract.selection__contract_abstract_contract__generation_type__invoice
#: model:ir.model.fields.selection,name:contract.selection__contract_contract__generation_type__invoice
#: model:ir.model.fields.selection,name:contract.selection__contract_template__generation_type__invoice
msgid "Invoice"
msgstr "Factura"
#~ msgid "Analytic account"
#~ msgstr "Cuenta analítica"

View File

@@ -51,15 +51,11 @@ class ContractAbstractContract(models.AbstractModel):
" of all together for the whole contract.",
)
generation_type = fields.Selection(
selection=lambda self: self._selection_generation_type(),
selection=[("invoice", "Invoice")],
default=lambda self: self._default_generation_type(),
help="Choose the document that will be automatically generated by cron.",
)
@api.model
def _selection_generation_type(self):
return [("invoice", "Invoice")]
@api.model
def _default_generation_type(self):
return "invoice"