mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 20:59:11 +00:00
FIX: Remove usage of "six.string_types" (#33603)
FIX: Remove usage of six.string_types six is no longer a dependency
This commit is contained in:
@@ -8,7 +8,6 @@ import frappe
|
|||||||
# import erpnext
|
# import erpnext
|
||||||
from frappe import _
|
from frappe import _
|
||||||
from frappe.utils import cint, flt, get_link_to_form
|
from frappe.utils import cint, flt, get_link_to_form
|
||||||
from six import string_types
|
|
||||||
|
|
||||||
import erpnext
|
import erpnext
|
||||||
from erpnext.assets.doctype.asset.depreciation import (
|
from erpnext.assets.doctype.asset.depreciation import (
|
||||||
@@ -626,7 +625,7 @@ def get_target_asset_details(asset=None, company=None):
|
|||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def get_consumed_stock_item_details(args):
|
def get_consumed_stock_item_details(args):
|
||||||
if isinstance(args, string_types):
|
if isinstance(args, str):
|
||||||
args = json.loads(args)
|
args = json.loads(args)
|
||||||
|
|
||||||
args = frappe._dict(args)
|
args = frappe._dict(args)
|
||||||
@@ -678,7 +677,7 @@ def get_consumed_stock_item_details(args):
|
|||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def get_warehouse_details(args):
|
def get_warehouse_details(args):
|
||||||
if isinstance(args, string_types):
|
if isinstance(args, str):
|
||||||
args = json.loads(args)
|
args = json.loads(args)
|
||||||
|
|
||||||
args = frappe._dict(args)
|
args = frappe._dict(args)
|
||||||
@@ -694,7 +693,7 @@ def get_warehouse_details(args):
|
|||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def get_consumed_asset_details(args):
|
def get_consumed_asset_details(args):
|
||||||
if isinstance(args, string_types):
|
if isinstance(args, str):
|
||||||
args = json.loads(args)
|
args = json.loads(args)
|
||||||
|
|
||||||
args = frappe._dict(args)
|
args = frappe._dict(args)
|
||||||
@@ -746,7 +745,7 @@ def get_consumed_asset_details(args):
|
|||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def get_service_item_details(args):
|
def get_service_item_details(args):
|
||||||
if isinstance(args, string_types):
|
if isinstance(args, str):
|
||||||
args = json.loads(args)
|
args = json.loads(args)
|
||||||
|
|
||||||
args = frappe._dict(args)
|
args = frappe._dict(args)
|
||||||
|
|||||||
Reference in New Issue
Block a user