fix(install): Get accounting dimensions in JW DocTypes

This commit is contained in:
Glen Whitney 2020-11-18 03:52:28 +00:00
parent ffc616e1cb
commit 1c61196046
2 changed files with 5 additions and 5 deletions

View File

@ -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)

View File

@ -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",