refactor: added missing translation functions (#18143)
* fix: Translating Error and Messages * Update erpnext/controllers/item_variant.py Co-Authored-By: Shivam Mishra <scmmishra@users.noreply.github.com> * Update erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py Co-Authored-By: Shivam Mishra <scmmishra@users.noreply.github.com>
This commit is contained in:
committed by
Shivam Mishra
parent
8929c62113
commit
841d852f41
@@ -176,7 +176,7 @@ def enqueue_multiple_variant_creation(item, args):
|
||||
for key in variants:
|
||||
total_variants *= len(variants[key])
|
||||
if total_variants >= 600:
|
||||
frappe.msgprint("Please do not create more than 500 items at a time", raise_exception=1)
|
||||
frappe.throw(_("Please do not create more than 500 items at a time"))
|
||||
return
|
||||
if total_variants < 10:
|
||||
return create_multiple_variants(item, args)
|
||||
|
||||
Reference in New Issue
Block a user