In treeview, bold only for root territory, looks cleaner

This commit is contained in:
Abhishek Balam 2020-05-10 00:24:43 +05:30
parent 7cbc902d90
commit 5ec5584319

View File

@ -143,7 +143,7 @@ def get_data_by_territory(filters, common_columns):
'new_customer_revenue': new[1], 'new_customer_revenue': new[1],
'repeat_customer_revenue': repeat[1], 'repeat_customer_revenue': repeat[1],
'total_revenue': new[1] + repeat[1], 'total_revenue': new[1] + repeat[1],
'bold': 0 if condition else 1 'bold': 0 if indent else 1
} }
data.append(temp) data.append(temp)
node_list = [x for x in territory_dict.keys() if territory_dict[x]['is_group'] == 0] node_list = [x for x in territory_dict.keys() if territory_dict[x]['is_group'] == 0]