Commit 9c8efcd1 authored by Xiaowu Zhang's avatar Xiaowu Zhang Committed by Cédric Le Ninivin

builder: it seems range nlt search which is great than, not include the equal one

parent f6dd0435
......@@ -507,8 +507,8 @@ class BuilderMixin(XMLObject, Amount, Predicate):
def chooseCorrectSupply(default_supply,start_date_range_min,start_date_range_max):
search_dict = {
'predicate.start_date_range_min':{'query':start_date_range_min, 'range':'ngt'},
'predicate.start_date_range_max':{'query':start_date_range_max, 'range':'nlt'},
'predicate.start_date_range_min':{'query':start_date_range_min, 'range':'<='},
'predicate.start_date_range_max':{'query':start_date_range_max, 'range':'>='},
}
stock_definition_supply_list = portal.portal_catalog(
portal_type=('Purchase Supply Cell', 'Purchase Supply Line'),
......
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