refactor: unnecessary joining of lists
This commit is contained in:
parent
fab7a58056
commit
2d76c05175
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user