Skip to content

Commit

Permalink
fix: auto create asset due to message error (backport #45934) (#45952)
Browse files Browse the repository at this point in the history
fix: auto create asset due to message error (#45934)

* fix: auto create asset due to message error

* fix: linters

(cherry picked from commit 6f1bc52)

Co-authored-by: 0xD0M1M0 <76812428+0xD0M1M0@users.noreply.github.com>
  • Loading branch information
mergify[bot] and 0xD0M1M0 authored Feb 19, 2025
1 parent be65cd4 commit 830edb8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions erpnext/controllers/buying_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,8 +779,10 @@ def auto_make_assets(self, asset_items):

is_plural = "s" if len(created_assets) != 1 else ""
messages.append(
_("Asset{} {assets_link} created for {}").format(
is_plural, frappe.bold(d.item_code), assets_link=assets_link
_("Asset{is_plural} {assets_link} created for {item_code}").format(
is_plural=is_plural,
assets_link=assets_link,
item_code=frappe.bold(d.item_code),
)
)
else:
Expand Down

0 comments on commit 830edb8

Please sign in to comment.