mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 15:12:51 +00:00
fix: Sider and Linter
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and contributors
|
||||
# For license information, please see license.txt
|
||||
from typing import Dict, List, Optional
|
||||
import click
|
||||
|
||||
import click
|
||||
import frappe
|
||||
from frappe import _
|
||||
from frappe.model.document import Document
|
||||
|
||||
@@ -6,7 +6,7 @@ frappe.listview_settings['BOM Update Log'] = {
|
||||
"In Progress": "blue",
|
||||
"Completed": "green",
|
||||
"Failed": "red"
|
||||
}
|
||||
};
|
||||
|
||||
return [__(doc.status), status_map[doc.status], "status,=," + doc.status];
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ frappe.ui.form.on('BOM Update Tool', {
|
||||
},
|
||||
|
||||
confirm_job_start: (frm, log_data) => {
|
||||
let log_link = frappe.utils.get_form_link("BOM Update Log", log_data.name, true)
|
||||
let log_link = frappe.utils.get_form_link("BOM Update Log", log_data.name, true);
|
||||
frappe.msgprint({
|
||||
"message": __(`BOM Updation is queued and may take a few minutes. Check ${log_link} for progress.`),
|
||||
"title": __("BOM Update Initiated"),
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# For license information, please see license.txt
|
||||
|
||||
import json
|
||||
from typing import Dict, List, Optional, TYPE_CHECKING, Union
|
||||
from typing import TYPE_CHECKING, Dict, Optional, Union
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from erpnext.manufacturing.doctype.bom_update_log.bom_update_log import BOMUpdateLog
|
||||
|
||||
Reference in New Issue
Block a user