[IMP] account_payment_order: add link to payment order in chatter

This commit is contained in:
Alexis de Lattre
2022-11-08 11:31:20 +01:00
committed by Pedro M. Baeza
parent 91421d3019
commit 676a9429f8
3 changed files with 21 additions and 6 deletions

View File

@@ -17,14 +17,16 @@ msgstr ""
#: code:addons/account_payment_order/models/account_move.py:0
#, python-format
msgid ""
"%(count)d payment lines added to the existing draft payment order %(name)s."
"%(count)d payment lines added to the existing draft payment order <a href=# "
"data-oe-model=account.payment.order data-oe-id=%(order_id)d>%(name)s</a>."
msgstr ""
#. module: account_payment_order
#: code:addons/account_payment_order/models/account_move.py:0
#, python-format
msgid ""
"%(count)d payment lines added to the new draft payment order %(name)s which "
"%(count)d payment lines added to the new draft payment order <a href=# data-"
"oe-model=account.payment.order data-oe-id=%(order_id)d>%(name)s</a>, which "
"has been automatically created."
msgstr ""

View File

@@ -23,16 +23,23 @@ msgstr ""
#: code:addons/account_payment_order/models/account_move.py:0
#, python-format
msgid ""
"%(count)d payment lines added to the existing draft payment order %(name)s."
"%(count)d payment lines added to the existing draft payment order <a href=# "
"data-oe-model=account.payment.order data-oe-id=%(order_id)d>%(name)s</a>."
msgstr ""
"%(count)d líneas de pago añadidas a la orden existente <a href=# "
"data-oe-model=account.payment.order data-oe-id=%(order_id)d>%(name)s</a>."
#. module: account_payment_order
#: code:addons/account_payment_order/models/account_move.py:0
#, python-format
msgid ""
"%(count)d payment lines added to the new draft payment order %(name)s which "
"%(count)d payment lines added to the new draft payment order <a href=# data-"
"oe-model=account.payment.order data-oe-id=%(order_id)d>%(name)s</a>, which "
"has been automatically created."
msgstr ""
"%(count)d líneas de pago añadidas a la nueva orden <a href=# data-"
"oe-model=account.payment.order data-oe-id=%(order_id)d>%(name)s</a>, que "
"ha sido creada automáticamente."
#. module: account_payment_order
#: model_terms:ir.ui.view,arch_db:account_payment_order.print_account_payment_order_document

View File

@@ -102,8 +102,11 @@ class AccountMove(models.Model):
move.message_post(
body=_(
"%(count)d payment lines added to the new draft payment "
"order %(name)s which has been automatically created.",
"order <a href=# data-oe-model=account.payment.order "
"data-oe-id=%(order_id)d>%(name)s</a>, which has been "
"automatically created.",
count=count,
order_id=payorder.id,
name=payorder.name,
)
)
@@ -111,8 +114,11 @@ class AccountMove(models.Model):
move.message_post(
body=_(
"%(count)d payment lines added to the existing draft "
"payment order %(name)s.",
"payment order "
"<a href=# data-oe-model=account.payment.order "
"data-oe-id=%(order_id)d>%(name)s</a>.",
count=count,
order_id=payorder.id,
name=payorder.name,
)
)