Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
slapos.core
Commits
acc65d77
Commit
acc65d77
authored
Dec 03, 2014
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OrderBuilder: Optimize performances a bit by selecting with uid
parent
e3a4c63b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/OrderBuilder_generateSlapOSAggregatedMovementList.xml
...ing/OrderBuilder_generateSlapOSAggregatedMovementList.xml
+2
-3
No files found.
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/OrderBuilder_generateSlapOSAggregatedMovementList.xml
View file @
acc65d77
...
@@ -59,15 +59,14 @@ portal = context.getPortalObject()\n
...
@@ -59,15 +59,14 @@ portal = context.getPortalObject()\n
business_process_uid_list = [\n
business_process_uid_list = [\n
portal.business_process_module.slapos_consumption_business_process.getUid(),\n
portal.business_process_module.slapos_consumption_business_process.getUid(),\n
portal.business_process_module.slapos_subscription_business_process.getUid()]\n
portal.business_process_module.slapos_subscription_business_process.getUid()]\n
specialise_
reference_list = [q.getReference
() for q in portal.portal_catalog(specialise_uid=business_process_uid_list,\n
specialise_
uid_list = [q.getUid
() for q in portal.portal_catalog(specialise_uid=business_process_uid_list,\n
portal_type=\'Sale Trade Condition\')]\n
portal_type=\'Sale Trade Condition\')]\n
\n
\n
select_kw.update(\n
select_kw.update(\n
limit=50, # just take a bit\n
limit=50, # just take a bit\n
portal_type=\'Sale Packing List Line\',\n
portal_type=\'Sale Packing List Line\',\n
simulation_state=\'delivered\',\n
simulation_state=\'delivered\',\n
parent_specialise_reference=specialise_reference_list,\n
parent_specialise_uid=specialise_uid_list,\n
parent_specialise_portal_type=\'Sale Trade Condition\',\n
grouping_reference=None,\n
grouping_reference=None,\n
sort_on=((\'modification_date\', \'ASC\'),) # the highest chance to find movement which can be delivered\n
sort_on=((\'modification_date\', \'ASC\'),) # the highest chance to find movement which can be delivered\n
)\n
)\n
...
...
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