mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
@@ -2334,6 +2334,13 @@ msgstr ""
|
|||||||
msgid "You must supply a date of next invoice for contract line '%s'"
|
msgid "You must supply a date of next invoice for contract line '%s'"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: contract
|
||||||
|
#. odoo-python
|
||||||
|
#: code:addons/contract/models/contract.py:0
|
||||||
|
#, python-format
|
||||||
|
msgid "by contract"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#. module: contract
|
#. module: contract
|
||||||
#: model_terms:ir.ui.view,arch_db:contract.contract_contract_form_view
|
#: model_terms:ir.ui.view,arch_db:contract.contract_contract_form_view
|
||||||
msgid "e.g. Contract XYZ"
|
msgid "e.g. Contract XYZ"
|
||||||
|
|||||||
@@ -2543,6 +2543,13 @@ msgstr ""
|
|||||||
"Debe proporcionar la fecha de la próxima factura para la línea del contrato "
|
"Debe proporcionar la fecha de la próxima factura para la línea del contrato "
|
||||||
"'%s'"
|
"'%s'"
|
||||||
|
|
||||||
|
#. module: contract
|
||||||
|
#. odoo-python
|
||||||
|
#: code:addons/contract/models/contract.py:0
|
||||||
|
#, python-format
|
||||||
|
msgid "by contract"
|
||||||
|
msgstr "por el contrato"
|
||||||
|
|
||||||
#. module: contract
|
#. module: contract
|
||||||
#: model_terms:ir.ui.view,arch_db:contract.contract_contract_form_view
|
#: model_terms:ir.ui.view,arch_db:contract.contract_contract_form_view
|
||||||
msgid "e.g. Contract XYZ"
|
msgid "e.g. Contract XYZ"
|
||||||
|
|||||||
@@ -619,17 +619,12 @@ class ContractContract(models.Model):
|
|||||||
def _add_contract_origin(self, invoices):
|
def _add_contract_origin(self, invoices):
|
||||||
for item in self:
|
for item in self:
|
||||||
for move in invoices & item._get_related_invoices():
|
for move in invoices & item._get_related_invoices():
|
||||||
|
translation = _("by contract")
|
||||||
move.message_post(
|
move.message_post(
|
||||||
body=(
|
body=(
|
||||||
_(
|
f"{move._creation_message()} {translation} "
|
||||||
(
|
f"<a href=# data-oe-model=contract.contract"
|
||||||
"%(msg)s by contract <a href=# data-oe-model=contract.contract"
|
f" data-oe-id={item.id}>{item.display_name}</a>."
|
||||||
" data-oe-id=%(contract_id)d>%(contract)s</a>."
|
|
||||||
),
|
|
||||||
msg=move._creation_message(),
|
|
||||||
contract_id=item.id,
|
|
||||||
contract=item.display_name,
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user