fix: Codacy and minor fixes

This commit is contained in:
Deepesh Garg 2020-07-05 18:16:16 +05:30
parent 4993ab5191
commit be05c4e14a
3 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,7 @@ frappe.ui.form.on('Item Tax Template', {
}
});
},
company: function (frm) {
company: function (frm) {
frm.set_query("tax_type", "taxes", function(doc) {
return {
filters: [

View File

@ -707,5 +707,4 @@ erpnext.patches.v13_0.move_doctype_reports_and_notification_from_hr_to_payroll #
erpnext.patches.v13_0.move_payroll_setting_separately_from_hr_settings #22-06-2020
erpnext.patches.v13_0.check_is_income_tax_component #22-06-2020
erpnext.patches.v12_0.add_taxjar_integration_field
execute:frappe.reload_doc('accounts', 'doctype', 'item_tax_template')
erpnext.patches.v12_0.update_item_tax_template_company

View File

@ -2,6 +2,8 @@ from __future__ import unicode_literals
import frappe
def execute():
frappe.reload_doc('accounts', 'doctype', 'item_tax_template')
item_tax_template_list = frappe.get_list('Item Tax Template')
for template in item_tax_template_list:
doc = frappe.get_doc('Item Tax Template', template.name)