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 @@
from frappe import _

View File

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

View File

@@ -1,5 +1,3 @@
def get_data():
return {
'fieldname': 'payroll_entry',

View File

@@ -1,5 +1,3 @@
def get_data():
return {
'fieldname': 'payroll_period',

View File

@@ -21,7 +21,6 @@ from frappe.utils import (
rounded,
)
from frappe.utils.background_jobs import enqueue
from six import iteritems
import erpnext
from erpnext.accounts.utils import get_fiscal_year
@@ -1342,7 +1341,7 @@ class SalarySlip(TransactionBase):
from erpnext.hr.doctype.leave_application.leave_application import get_leave_details
leave_details = get_leave_details(self.employee, self.end_date)
for leave_type, leave_values in iteritems(leave_details['leave_allocation']):
for leave_type, leave_values in leave_details['leave_allocation'].items():
self.append('leave_details', {
'leave_type': leave_type,
'total_allocated_leaves': flt(leave_values.get('total_leaves')),

View File

@@ -1,5 +1,3 @@
def get_data():
return {
'fieldname': 'salary_structure',

View File

@@ -1,5 +1,3 @@
def get_context(context):
# do your magic here
pass