refactor: unnecessary joining of lists

This commit is contained in:
Ankush Menat 2022-01-09 18:41:33 +05:30 committed by Ankush Menat
parent fab7a58056
commit 2d76c05175

View File

@ -547,10 +547,7 @@ def get_columns(filters):
"fieldname": "balance", "fieldname": "balance",
"fieldtype": "Float", "fieldtype": "Float",
"width": 130 "width": 130
} },
]
columns.extend([
{ {
"label": _("Voucher Type"), "label": _("Voucher Type"),
"fieldname": "voucher_type", "fieldname": "voucher_type",
@ -584,7 +581,7 @@ def get_columns(filters):
"fieldname": "project", "fieldname": "project",
"width": 100 "width": 100
} }
]) ]
if filters.get("include_dimensions"): if filters.get("include_dimensions"):
for dim in get_accounting_dimensions(as_list = False): for dim in get_accounting_dimensions(as_list = False):