Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Cédric Le Ninivin
erp5
Commits
f0be3dd1
Commit
f0be3dd1
authored
Aug 07, 2019
by
Xiaowu Zhang
Committed by
Cédric Le Ninivin
Mar 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder: it seems range nlt search which is great than, not include the equal one
parent
90175dd8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bt5/erp5_base/MixinTemplateItem/portal_components/mixin.erp5.BuilderMixin.py
...TemplateItem/portal_components/mixin.erp5.BuilderMixin.py
+2
-2
No files found.
bt5/erp5_base/MixinTemplateItem/portal_components/mixin.erp5.BuilderMixin.py
View file @
f0be3dd1
...
...
@@ -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'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment