mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[16.0][IMP] contract and contract_sale_generation: Add translations
This commit is contained in:
@@ -2427,6 +2427,13 @@ msgstr ""
|
|||||||
"{{ object.company_id.name }} Contrato (Ref {{ object.name or 'n/a' }}) - "
|
"{{ object.company_id.name }} Contrato (Ref {{ object.name or 'n/a' }}) - "
|
||||||
"Modificaciones"
|
"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"
|
#~ msgid "Analytic account"
|
||||||
#~ msgstr "Cuenta analítica"
|
#~ msgstr "Cuenta analítica"
|
||||||
|
|
||||||
|
|||||||
@@ -51,15 +51,11 @@ class ContractAbstractContract(models.AbstractModel):
|
|||||||
" of all together for the whole contract.",
|
" of all together for the whole contract.",
|
||||||
)
|
)
|
||||||
generation_type = fields.Selection(
|
generation_type = fields.Selection(
|
||||||
selection=lambda self: self._selection_generation_type(),
|
selection=[("invoice", "Invoice")],
|
||||||
default=lambda self: self._default_generation_type(),
|
default=lambda self: self._default_generation_type(),
|
||||||
help="Choose the document that will be automatically generated by cron.",
|
help="Choose the document that will be automatically generated by cron.",
|
||||||
)
|
)
|
||||||
|
|
||||||
@api.model
|
|
||||||
def _selection_generation_type(self):
|
|
||||||
return [("invoice", "Invoice")]
|
|
||||||
|
|
||||||
@api.model
|
@api.model
|
||||||
def _default_generation_type(self):
|
def _default_generation_type(self):
|
||||||
return "invoice"
|
return "invoice"
|
||||||
|
|||||||
@@ -95,12 +95,16 @@ msgstr ""
|
|||||||
"Se trata de un campo técnico para saber si la orden debe confirmarse "
|
"Se trata de un campo técnico para saber si la orden debe confirmarse "
|
||||||
"automáticamente si se genera por contrato."
|
"automáticamente si se genera por contrato."
|
||||||
|
|
||||||
|
#. module: contract_sale_generation
|
||||||
|
#: model:ir.model.fields.selection,name:contract_sale_generation.selection__contract_abstract_contract__generation_type__sale
|
||||||
|
#: model:ir.model.fields.selection,name:contract_sale_generation.selection__contract_contract__generation_type__sale
|
||||||
|
#: model:ir.model.fields.selection,name:contract_sale_generation.selection__contract_template__generation_type__sale
|
||||||
|
msgid "Sale"
|
||||||
|
msgstr "Venta"
|
||||||
|
|
||||||
#~ msgid "Invoice"
|
#~ msgid "Invoice"
|
||||||
#~ msgstr "Factura"
|
#~ msgstr "Factura"
|
||||||
|
|
||||||
#~ msgid "Sale"
|
|
||||||
#~ msgstr "Venta"
|
|
||||||
|
|
||||||
#~ msgid "Type"
|
#~ msgid "Type"
|
||||||
#~ msgstr "Tipo"
|
#~ msgstr "Tipo"
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# Copyright 2017 Angel Moya <angel.moya@pesol.es>
|
# Copyright 2017 Angel Moya <angel.moya@pesol.es>
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
from odoo import api, fields, models
|
from odoo import fields, models
|
||||||
|
|
||||||
|
|
||||||
class ContractAbstractContract(models.AbstractModel):
|
class ContractAbstractContract(models.AbstractModel):
|
||||||
@@ -10,8 +10,6 @@ class ContractAbstractContract(models.AbstractModel):
|
|||||||
|
|
||||||
sale_autoconfirm = fields.Boolean()
|
sale_autoconfirm = fields.Boolean()
|
||||||
|
|
||||||
@api.model
|
generation_type = fields.Selection(
|
||||||
def _selection_generation_type(self):
|
selection_add=[("sale", "Sale")],
|
||||||
res = super()._selection_generation_type()
|
)
|
||||||
res.append(("sale", "Sale"))
|
|
||||||
return res
|
|
||||||
|
|||||||
Reference in New Issue
Block a user