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