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
4847eb00
Commit
4847eb00
authored
Mar 07, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consider only validated lines.
parent
a0f9e081
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
master/bt5/vifib_slap/SkinTemplateItem/portal_skins/vifib_slap/HostingSubscription_removeRelatedOpenSaleOrderLine.xml
...ap/HostingSubscription_removeRelatedOpenSaleOrderLine.xml
+5
-1
master/bt5/vifib_slap/bt/revision
master/bt5/vifib_slap/bt/revision
+1
-1
No files found.
master/bt5/vifib_slap/SkinTemplateItem/portal_skins/vifib_slap/HostingSubscription_removeRelatedOpenSaleOrderLine.xml
View file @
4847eb00
...
@@ -66,9 +66,13 @@ for sale_packing_list_line in portal.portal_catalog(\n
...
@@ -66,9 +66,13 @@ for sale_packing_list_line in portal.portal_catalog(\n
simulation_state=NegatedQuery(Query(simulation_state="delivered")),\n
simulation_state=NegatedQuery(Query(simulation_state="delivered")),\n
):\n
):\n
if sale_packing_list_line.getSimulationState() != \'delivered\':\n
if sale_packing_list_line.getSimulationState() != \'delivered\':\n
raise ValueError(sale_packing_list_line.getPath())\n
all_delivered = False\n
all_delivered = False\n
if all_delivered:\n
if all_delivered:\n
open_order_line = context.getAggregateRelatedValue(portal_type="Open Sale Order Line")\n
open_order_line = portal.portal_catalog.getResultValue(\n
default_aggregate_uid=context.getUid(),\n
portal_type=\'Open Sale Order Line\',\n
validation_state=\'validated\')\n
if open_order_line is not None:\n
if open_order_line is not None:\n
# XXX: Mahybe system shall *NOT* work without Open Sale Orders\n
# XXX: Mahybe system shall *NOT* work without Open Sale Orders\n
open_order_line.getParentValue().getDestinationDecisionValue().Person_updateOpenOrder(remove_id=open_order_line.getId())\n
open_order_line.getParentValue().getDestinationDecisionValue().Person_updateOpenOrder(remove_id=open_order_line.getId())\n
...
...
master/bt5/vifib_slap/bt/revision
View file @
4847eb00
609
610
\ No newline at end of file
\ No newline at end of file
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