Skip to content
Permalink
Browse files

wip

  • Loading branch information
Polymorphe57 committed Mar 25, 2020
1 parent 469e822 commit b5ffe6cec7ba829be7c753af8e343abe9a74998b
Showing with 1 addition and 5 deletions.
  1. +1 −5 addons/web/models/models.py
@@ -253,9 +253,7 @@ def search_panel_select_range(self, field_name, **kwargs):
def group_id_name(value):
return value or (False, _("Not Set"))

#############################################################################################
# get counters

counters = defaultdict(lambda: 0)
if not disable_counters:
# get local counters
@@ -277,7 +275,7 @@ def group_id_name(value):
forest[parent_id]['children_ids'].append(record_id)
forest[record_id]['is_root'] = False

root_ids = [rec[0] for rec in forest.items() if rec[1]['is_root']]
root_ids = [id for id, node in forest.items() if node['is_root']]
forest['adjoint_id']['children_ids'] = root_ids

def compute_global_count(id):
@@ -287,8 +285,6 @@ def compute_global_count(id):

compute_global_count('adjoint_id')

#############################################################################################

for record in records:
record_id = record['id']
values = {

0 comments on commit b5ffe6c

Please sign in to comment.
You can’t perform that action at this time.