mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-29 14:48:26 +00:00
chore: remove all six compat code
This commit is contained in:
@@ -20,7 +20,6 @@ from frappe.utils import (
|
||||
nowdate,
|
||||
today,
|
||||
)
|
||||
from six import string_types
|
||||
|
||||
import erpnext
|
||||
from erpnext.accounts.general_ledger import make_reverse_gl_entries
|
||||
@@ -625,7 +624,7 @@ class Asset(AccountsController):
|
||||
|
||||
@frappe.whitelist()
|
||||
def get_depreciation_rate(self, args, on_validate=False):
|
||||
if isinstance(args, string_types):
|
||||
if isinstance(args, str):
|
||||
args = json.loads(args)
|
||||
|
||||
float_precision = cint(frappe.db.get_default("float_precision")) or 2
|
||||
@@ -820,9 +819,7 @@ def make_journal_entry(asset_name):
|
||||
def make_asset_movement(assets, purpose=None):
|
||||
import json
|
||||
|
||||
from six import string_types
|
||||
|
||||
if isinstance(assets, string_types):
|
||||
if isinstance(assets, str):
|
||||
assets = json.loads(assets)
|
||||
|
||||
if len(assets) == 0:
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
def get_data():
|
||||
return {
|
||||
'non_standard_fieldnames': {
|
||||
|
||||
Reference in New Issue
Block a user