• Vincent Pelletier's avatar
    erp5_accounting: Give a None selection_domain instead of an empty dict. · 9d29b906
    Vincent Pelletier authored
    Otherwise, the query will include a pointless "node.uid > 0" condition
    (because internal API has no choice but to return a condition) which
    confuses the query optimiser and may lead to very suboptimal execution
    plans: a range scan of node.uid (catalog as node, node.uid=stock.node_uid)
    despite provided account uid list constraining stock.node_uid.
    9d29b906
Node_statAccountingBalance.py 4.57 KB