Commit aa016b54 authored by Xiaowu Zhang's avatar Xiaowu Zhang Committed by Xiaowu Zhang

erp5_accounting: change payment movement selection criteria

parent 6232e226
kw['parent_specialise_reference'] = 'default_payment_rule'
kw['grand_parent_simulation_state'] = 'started'
kw['grand_parent_simulation_state'] = ('started', 'stopped')
kw['delivery_uid'] = None
kw['left_join_list'] = ['delivery_uid']
kw['select_dict'] = dict(delivery_uid=None)
kw['group_by'] = ('uid',)
# We assume that all simulation movements without a delivery are in planned or auto planned state.
# By passing this, catalog should use an index on portal_type + simulation state.
# XXX actually we do not even pass auto_planned to have only 1 value, because we just do not use
# auto_planned state in this project.
kw['simulation_state'] = ('planned', )
kw['src__'] = src__
return context.portal_catalog(**kw)
Markdown is supported
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