mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
chore: remove all six compat code
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
from frappe.custom.doctype.custom_field.custom_field import create_custom_fields
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
|
||||
from erpnext.regional.india.setup import make_custom_fields
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
from frappe.custom.doctype.custom_field.custom_field import create_custom_fields
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
|
||||
from erpnext.regional.united_states.setup import make_custom_fields
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
from frappe.custom.doctype.custom_field.custom_field import create_custom_field
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
|
||||
from erpnext.regional.united_states.setup import make_custom_fields
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
from frappe.custom.doctype.custom_field.custom_field import create_custom_fields
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
|
||||
from erpnext.stock.stock_balance import get_indented_qty, update_bin_qty
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
from frappe.utils import cint
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
from collections import defaultdict
|
||||
|
||||
import frappe
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
from frappe.utils import getdate, nowdate
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
from frappe.utils import add_days, getdate, today
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
from frappe.model.utils.rename_field import rename_field
|
||||
from frappe.modules import get_doctype_module, scrub
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
|
||||
from erpnext.accounts.doctype.accounting_dimension.accounting_dimension import (
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
from frappe.utils import getdate
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user