diff --git a/justworks_erpnext/install.py b/justworks_erpnext/install.py index 9eff927..bc3205e 100644 --- a/justworks_erpnext/install.py +++ b/justworks_erpnext/install.py @@ -1,10 +1,11 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals -from erpnext.doctype.accounting_dimension.accounting_dimension import make_dimension_in_accounting_doctypes, get_accounting_dimensions +import frappe +from erpnext.accounts.doctype.accounting_dimension.accounting_dimension import make_dimension_in_accounting_doctypes, get_accounting_dimensions def after_install(): jw_doclist = frappe.get_hooks('accounting_dimension_doctypes', - app='justworks_erpnext') + app_name='justworks_erpnext') acc_dims = get_accounting_dimensions(as_list=False) for dim in acc_dims: make_dimension_in_accounting_doctypes(dim, doclist=jw_doclist) diff --git a/justworks_erpnext/justworks_erpnext_connector/doctype/jw_employee_allocation/jw_employee_allocation.json b/justworks_erpnext/justworks_erpnext_connector/doctype/jw_employee_allocation/jw_employee_allocation.json index 2e6f30b..cbd71d9 100644 --- a/justworks_erpnext/justworks_erpnext_connector/doctype/jw_employee_allocation/jw_employee_allocation.json +++ b/justworks_erpnext/justworks_erpnext_connector/doctype/jw_employee_allocation/jw_employee_allocation.json @@ -70,8 +70,7 @@ "fieldtype": "Link", "in_list_view": 1, "label": "Cost Center", - "options": "Cost Center", - "reqd": 1 + "options": "Cost Center" }, { "fieldname": "dimension_col_break", @@ -90,7 +89,7 @@ "index_web_pages_for_search": 1, "is_submittable": 1, "links": [], - "modified": "2020-11-17 01:39:51.349422", + "modified": "2020-11-17 22:50:04.399844", "modified_by": "Administrator", "module": "Justworks ERPNext Connector", "name": "JW Employee Allocation",