Commit e6075520 authored by Julio [Vauxoo]'s avatar Julio [Vauxoo]
Browse files

[IMP] added condition in query to filter account actives

parent a693cc11
......@@ -315,7 +315,7 @@ COALESCE(subvw_final.credit,0.0) as credit,
node.id as id,node.name,node.type
FROM account_account AS node,account_account AS parent
WHERE node.parent_left BETWEEN parent.parent_left AND parent.parent_right
AND """+where_account_ids+"""
AND """+where_account_ids+""" AND node.active = True
ORDER BY parent.parent_left ) nivel
) padres ON padres.id=nivel.id
WHERE nivel.level <= %s
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment