erp5_accounting: Give a None selection_domain instead of an empty dict.
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.
Showing
Please register or sign in to comment