Skip to content

Commit b32cf35

Browse files
committed
Merge branch 'develop'
2 parents 67ddcf9 + 9422f69 commit b32cf35

File tree

38 files changed

+695
-128
lines changed

38 files changed

+695
-128
lines changed

erpnext/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from __future__ import unicode_literals
33
import frappe
44

5-
__version__ = '8.0.28'
5+
__version__ = '8.0.29'
66

77
def get_default_company(user=None):
88
'''Get default company for user'''

erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,14 @@ def get_account_tree_from_existing_company(existing_company):
125125
account_tree = {}
126126

127127
# fill in tree starting with root accounts (those with no parent)
128-
build_account_tree(account_tree, None, all_accounts)
128+
if all_accounts:
129+
build_account_tree(account_tree, None, all_accounts)
129130
return account_tree
130131

131132
def build_account_tree(tree, parent, all_accounts):
132133
# find children
133-
parent_account = parent.name if parent else None
134-
children = [acc for acc in all_accounts if acc.parent_account == parent_account]
134+
parent_account = parent.name if parent else ""
135+
children = [acc for acc in all_accounts if cstr(acc.parent_account) == parent_account]
135136

136137
# if no children, but a group account
137138
if not children and parent.is_group:

erpnext/accounts/doctype/account/chart_of_accounts/verified/id_chart_of_accounts.json

+2-12
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,10 @@
2222
},
2323
"1120.000 Bank ": {
2424
"1121.000 Bank Rupiah": {
25-
"1121.0010 Bank 1": {
26-
"account_type": "Bank"
27-
},
28-
"1121.0020 Bank 2": {
29-
"account_type": "Bank"
30-
}
25+
"is_group": 1
3126
},
3227
"1122.000 Bank Other Currency": {
33-
"1122.0010 Bank 1": {
34-
"account_type": "Bank"
35-
},
36-
"1122.0020 Bank 2": {
37-
"account_type": "Bank"
38-
}
28+
"is_group": 1
3929
},
4030
"account_type": "Bank"
4131
},

erpnext/accounts/doctype/asset/asset.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ frappe.ui.form.on('Asset', {
4545
erpnext.asset.scrap_asset(frm);
4646
});
4747

48-
frm.add_custom_button("Sale Asset", function() {
48+
frm.add_custom_button("Sell Asset", function() {
4949
erpnext.asset.make_sales_invoice(frm);
5050
});
5151

0 commit comments

Comments
 (0)