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
Labels
Merge Requests
18
Merge Requests
18
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
5a521da8
Commit
5a521da8
authored
Feb 27, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix PPL definition.
parent
8a96b0f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
master/bt5/vifib_erp5/TestTemplateItem/testVifibUserAdmin.py
master/bt5/vifib_erp5/TestTemplateItem/testVifibUserAdmin.py
+10
-6
master/bt5/vifib_erp5/bt/revision
master/bt5/vifib_erp5/bt/revision
+1
-1
No files found.
master/bt5/vifib_erp5/TestTemplateItem/testVifibUserAdmin.py
View file @
5a521da8
...
...
@@ -199,12 +199,16 @@ class TestVifibUserAdmin(testVifibMixin):
purchase_packing_list_module
=
self
.
portal
.
restrictedTraverse
(
purchase_packing_list_module_id
)
# Create PPL
purchase_packing_list
=
purchase_packing_list_module
.
newContent
(
portal_type
=
'Purchase Packing List'
)
purchase_packing_list
.
edit
(
start_date
=
DateTime
(),
specialise
=
'sale_trade_condition_module/vifib_trade_condition'
,
source
=
'organisation_module/vifib_internet'
,
source_section
=
'organisation_module/vifib_internet'
,
# XXX Hardcoded values
destination_value
=
person_value
,
destination_section_value
=
person_value
,
destination_decision_value
=
person_value
,
)
price_currency
=
'currency_module/EUR'
,
portal_type
=
'Purchase Packing List'
)
# Access service
service_module_id
=
self
.
portal
.
getDefaultModuleId
(
portal_type
=
'Service'
)
service_module
=
self
.
portal
.
restrictedTraverse
(
service_module_id
)
...
...
@@ -212,9 +216,9 @@ class TestVifibUserAdmin(testVifibMixin):
# Create PPLL
purchase_packing_list_line
=
purchase_packing_list
.
newContent
(
portal_type
=
'Purchase Packing List Line'
)
purchase_packing_list_line
.
edit
(
portal_type
=
'Purchase Packing List Line'
,
resource_value
=
service_value
,
aggregate_value_list
=
[
computer
,
software_release
],
quantity
=
1
)
purchase_packing_list
.
portal_workflow
.
doActionFor
(
purchase_packing_list
,
'confirm_action'
)
master/bt5/vifib_erp5/bt/revision
View file @
5a521da8
379
\ No newline at end of file
380
\ 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