Skip to content

Commit

Permalink
[REF] l10n_pt_stock_invoicexpress: fix pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dreispt committed Nov 16, 2023
1 parent c5b6e3a commit d574c95
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions l10n_pt_stock_invoicexpress/models/stock_picking.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,12 @@ def _prepare_invoicexpress_vals(self):
def _update_invoicexpress_status(self):
inv_xpress_link_name = _("View Document")
inv_xpress_link = _(
"<a class='btn btn-info mr-2' target='new' href={}>{}</a>"
).format(self.invoicexpress_permalink, inv_xpress_link_name)
"<a class='btn btn-info mr-2' target='new' href=%(link)s>%(name)s</a>"
).format(link=self.invoicexpress_permalink, name=inv_xpress_link_name)
msg = _(
"InvoiceXpress record has been created for this delivery order:<ul>"
"<li>Number: {inv_xpress_num}</li>"
"<li>{inv_xpress_link}</li></ul>"
"<li>Number: %(inv_xpress_num)s</li>"
"<li>%(inv_xpress_link)s</li></ul>"
).format(
inv_xpress_num=self.invoicexpress_number, inv_xpress_link=inv_xpress_link
)
Expand Down Expand Up @@ -269,10 +269,11 @@ def action_send_invoicexpress_delivery(self, ignore_no_config=False):
delivery.company_id, endpoint, "PUT", payload=payload
)
msg = _(
"Email sent by InvoiceXpress:<ul><li>To: {}</li><li>Cc: {}</li></ul>"
"Email sent by InvoiceXpress:<ul><li>To: "
"%(email)s/li><li>Cc: %(cc)s</li></ul>"
).format(
payload["message"]["client"]["email"],
payload["message"]["cc"] or _("None"),
email=payload["message"]["client"]["email"],
cc=payload["message"]["cc"] or _("None"),
)
delivery.message_post(body=msg)

Expand Down

0 comments on commit d574c95

Please sign in to comment.