mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-04 22:18:27 +00:00
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
@@ -645,7 +645,7 @@ def set_project_status(project, status):
|
||||
set status for project and all related tasks
|
||||
'''
|
||||
if not status in ('Completed', 'Cancelled'):
|
||||
frappe.throw('Status must be Cancelled or Completed')
|
||||
frappe.throw(_('Status must be Cancelled or Completed'))
|
||||
|
||||
project = frappe.get_doc('Project', project)
|
||||
frappe.has_permission(doc = project, throw = True)
|
||||
|
||||
Reference in New Issue
Block a user