fix: patch for creating irs_1099 custom field (United States)

This commit is contained in:
Rucha Mahabal 2020-02-10 00:34:09 +05:30
parent 8bd2d4d35e
commit 8334a3a1fd
2 changed files with 11 additions and 0 deletions

View File

@ -644,3 +644,4 @@ erpnext.patches.v12_0.set_expense_account_in_landed_cost_voucher_taxes
erpnext.patches.v12_0.replace_accounting_with_accounts_in_home_settings
erpnext.patches.v12_0.set_payment_entry_status
erpnext.patches.v12_0.update_owner_fields_in_acc_dimension_custom_fields
erpnext.patches.v12_0.create_irs_1099_field_united_states

View File

@ -0,0 +1,10 @@
from __future__ import unicode_literals
import frappe
from erpnext.regional.united_states.setup import make_custom_fields
def execute():
company = frappe.get_all('Company', filters = {'country': 'United States'})
if not company:
return
make_custom_fields()