chore: remove all six compat code

This commit is contained in:
Ankush Menat
2021-11-04 19:48:32 +05:30
parent 56a25a0c4f
commit 8fe5feb6a4
420 changed files with 179 additions and 678 deletions

View File

@@ -1,4 +1,3 @@
import frappe
from frappe.custom.doctype.custom_field.custom_field import create_custom_fields

View File

@@ -1,4 +1,3 @@
import frappe
from erpnext.regional.india.setup import make_custom_fields

View File

@@ -1,4 +1,3 @@
import frappe
from frappe.custom.doctype.custom_field.custom_field import create_custom_fields

View File

@@ -1,4 +1,3 @@
import frappe
from erpnext.regional.united_states.setup import make_custom_fields

View File

@@ -1,4 +1,3 @@
import frappe
from frappe.custom.doctype.custom_field.custom_field import create_custom_field

View File

@@ -1,4 +1,3 @@
import frappe
from erpnext.regional.united_states.setup import make_custom_fields

View File

@@ -1,4 +1,3 @@
import frappe
from frappe.custom.doctype.custom_field.custom_field import create_custom_fields
from frappe.custom.doctype.property_setter.property_setter import make_property_setter

View File

@@ -1,4 +1,3 @@
import frappe
from frappe.custom.doctype.custom_field.custom_field import create_custom_fields

View File

@@ -1,4 +1,3 @@
import frappe

View File

@@ -2,7 +2,6 @@ import json
import frappe
from frappe.model.naming import make_autoname
from six import iteritems
def execute():
@@ -84,7 +83,7 @@ def execute():
def get_item_tax_template(item_tax_templates, item_tax_map, item_code, parenttype=None, parent=None, tax_types=None):
# search for previously created item tax template by comparing tax maps
for template, item_tax_template_map in iteritems(item_tax_templates):
for template, item_tax_template_map in item_tax_templates.items():
if item_tax_map == item_tax_template_map:
return template
@@ -92,7 +91,7 @@ def get_item_tax_template(item_tax_templates, item_tax_map, item_code, parenttyp
item_tax_template = frappe.new_doc("Item Tax Template")
item_tax_template.title = make_autoname("Item Tax Template-.####")
for tax_type, tax_rate in iteritems(item_tax_map):
for tax_type, tax_rate in item_tax_map.items():
account_details = frappe.db.get_value("Account", tax_type, ['name', 'account_type', 'company'], as_dict=1)
if account_details:
item_tax_template.company = account_details.company

View File

@@ -1,4 +1,3 @@
import frappe
from erpnext.stock.stock_balance import get_indented_qty, update_bin_qty

View File

@@ -1,4 +1,3 @@
import frappe

View File

@@ -1,4 +1,3 @@
import frappe

View File

@@ -1,4 +1,3 @@
import frappe

View File

@@ -1,4 +1,3 @@
import frappe
from frappe.utils import cint

View File

@@ -1,4 +1,3 @@
import frappe

View File

@@ -1,6 +1,4 @@
import frappe
from six import iteritems
def execute():
@@ -10,7 +8,7 @@ def execute():
SELECT name, expenses_included_in_valuation from `tabCompany`
"""))
for company, account in iteritems(company_account_map):
for company, account in company_account_map.items():
frappe.db.sql("""
UPDATE
`tabLanded Cost Taxes and Charges` t, `tabLanded Cost Voucher` l

View File

@@ -1,4 +1,3 @@
import frappe

View File

@@ -1,4 +1,3 @@
from collections import defaultdict
import frappe

View File

@@ -1,4 +1,3 @@
import frappe

View File

@@ -1,4 +1,3 @@
import frappe
from frappe.utils import getdate, nowdate

View File

@@ -1,4 +1,3 @@
import frappe

View File

@@ -1,4 +1,3 @@
import frappe

View File

@@ -1,4 +1,3 @@
import frappe

View File

@@ -1,4 +1,3 @@
import frappe
from frappe.utils import add_days, getdate, today

View File

@@ -1,4 +1,3 @@
import frappe

View File

@@ -1,4 +1,3 @@
import frappe

View File

@@ -1,4 +1,3 @@
import frappe
from frappe.model.utils.rename_field import rename_field
from frappe.modules import get_doctype_module, scrub

View File

@@ -1,4 +1,3 @@
import frappe

View File

@@ -1,4 +1,3 @@
import frappe

View File

@@ -1,4 +1,3 @@
import frappe
from erpnext.accounts.doctype.accounting_dimension.accounting_dimension import (

View File

@@ -1,4 +1,3 @@
import frappe
from frappe.utils import getdate

View File

@@ -1,4 +1,3 @@
import frappe

View File

@@ -1,4 +1,3 @@
import frappe