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
896df1f6
Commit
896df1f6
authored
Jul 09, 2020
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_subscription_request: Do not overwrite source, use the defined value from the template
parent
a074f376
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
22 deletions
+26
-22
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequest_createRelatedSaleInvoiceTransaction.py
...ubscriptionRequest_createRelatedSaleInvoiceTransaction.py
+0
-1
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequest_requestPaymentTransaction.py
..._request/SubscriptionRequest_requestPaymentTransaction.py
+0
-1
master/bt5/slapos_subscription_request/TestTemplateItem/portal_components/test.erp5.testSlapOSSubscriptionSkins.py
...ortal_components/test.erp5.testSlapOSSubscriptionSkins.py
+6
-3
master/bt5/slapos_subscription_request/TestTemplateItem/portal_components/test.erp5.testSlapOSSubscriptionSkins.xml
...rtal_components/test.erp5.testSlapOSSubscriptionSkins.xml
+20
-17
No files found.
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequest_createRelatedSaleInvoiceTransaction.py
View file @
896df1f6
...
@@ -19,7 +19,6 @@ if current_invoice is None:
...
@@ -19,7 +19,6 @@ if current_invoice is None:
payment_transaction
=
invoice_template
=
portal
.
restrictedTraverse
(
payment
)
payment_transaction
=
invoice_template
=
portal
.
restrictedTraverse
(
payment
)
current_invoice
.
edit
(
current_invoice
.
edit
(
title
=
"Reservation Fee"
,
title
=
"Reservation Fee"
,
source_value
=
context
.
getDestinationSection
(),
destination_value
=
context
.
getDestinationSection
(),
destination_value
=
context
.
getDestinationSection
(),
destination_section_value
=
context
.
getDestinationSection
(),
destination_section_value
=
context
.
getDestinationSection
(),
destination_decision_value
=
context
.
getDestinationSection
(),
destination_decision_value
=
context
.
getDestinationSection
(),
...
...
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequest_requestPaymentTransaction.py
View file @
896df1f6
...
@@ -16,7 +16,6 @@ if current_invoice is None:
...
@@ -16,7 +16,6 @@ if current_invoice is None:
current_payment
.
edit
(
current_payment
.
edit
(
title
=
"Payment for Reservation Fee"
,
title
=
"Payment for Reservation Fee"
,
source_value
=
context
.
getDestinationSection
(),
destination_value
=
context
.
getDestinationSection
(),
destination_value
=
context
.
getDestinationSection
(),
destination_section_value
=
context
.
getDestinationSection
(),
destination_section_value
=
context
.
getDestinationSection
(),
destination_decision_value
=
context
.
getDestinationSection
(),
destination_decision_value
=
context
.
getDestinationSection
(),
...
...
master/bt5/slapos_subscription_request/TestTemplateItem/portal_components/test.erp5.testSlapOSSubscriptionSkins.py
View file @
896df1f6
...
@@ -511,7 +511,8 @@ class TestSubscriptionRequest_requestPaymentTransaction(TestSubscriptionSkinsMix
...
@@ -511,7 +511,8 @@ class TestSubscriptionRequest_requestPaymentTransaction(TestSubscriptionSkinsMix
self
.
tic
()
self
.
tic
()
self
.
assertNotEqual
(
None
,
current_payment
)
self
.
assertNotEqual
(
None
,
current_payment
)
self
.
assertEqual
(
current_payment
.
getTitle
(),
"Payment for Reservation Fee"
)
self
.
assertEqual
(
current_payment
.
getTitle
(),
"Payment for Reservation Fee"
)
self
.
assertEqual
(
current_payment
.
getSourceValue
(),
person
)
self
.
assertEqual
(
current_payment
.
getSourceValue
(),
self
.
slapos_organisation
)
self
.
assertEqual
(
current_payment
.
getSourceSectionValue
(),
self
.
slapos_organisation
)
self
.
assertEqual
(
current_payment
.
getDestinationValue
(),
person
)
self
.
assertEqual
(
current_payment
.
getDestinationValue
(),
person
)
self
.
assertEqual
(
current_payment
.
getDestinationSectionValue
(),
person
)
self
.
assertEqual
(
current_payment
.
getDestinationSectionValue
(),
person
)
self
.
assertEqual
(
current_payment
.
getDestinationDecisionValue
(),
person
)
self
.
assertEqual
(
current_payment
.
getDestinationDecisionValue
(),
person
)
...
@@ -541,7 +542,8 @@ class TestSubscriptionRequest_requestPaymentTransaction(TestSubscriptionSkinsMix
...
@@ -541,7 +542,8 @@ class TestSubscriptionRequest_requestPaymentTransaction(TestSubscriptionSkinsMix
self
.
tic
()
self
.
tic
()
self
.
assertNotEqual
(
None
,
current_payment
)
self
.
assertNotEqual
(
None
,
current_payment
)
self
.
assertEqual
(
current_payment
.
getTitle
(),
"Payment for Reservation Fee"
)
self
.
assertEqual
(
current_payment
.
getTitle
(),
"Payment for Reservation Fee"
)
self
.
assertEqual
(
current_payment
.
getSourceValue
(),
person
)
self
.
assertEqual
(
current_payment
.
getSourceValue
(),
self
.
slapos_organisation
)
self
.
assertEqual
(
current_payment
.
getSourceSectionValue
(),
self
.
slapos_organisation
)
self
.
assertEqual
(
current_payment
.
getDestinationValue
(),
person
)
self
.
assertEqual
(
current_payment
.
getDestinationValue
(),
person
)
self
.
assertEqual
(
current_payment
.
getDestinationSectionValue
(),
person
)
self
.
assertEqual
(
current_payment
.
getDestinationSectionValue
(),
person
)
self
.
assertEqual
(
current_payment
.
getDestinationDecisionValue
(),
person
)
self
.
assertEqual
(
current_payment
.
getDestinationDecisionValue
(),
person
)
...
@@ -643,7 +645,8 @@ class TestSubscriptionRequest_createRelatedSaleInvoiceTransaction(TestSubscripti
...
@@ -643,7 +645,8 @@ class TestSubscriptionRequest_createRelatedSaleInvoiceTransaction(TestSubscripti
self
.
assertEqual
(
current_invoice
,
subscription_invoice
)
self
.
assertEqual
(
current_invoice
,
subscription_invoice
)
self
.
assertEqual
(
current_invoice
.
getTitle
(),
"Reservation Fee"
)
self
.
assertEqual
(
current_invoice
.
getTitle
(),
"Reservation Fee"
)
self
.
assertEqual
(
current_invoice
.
getSourceValue
(),
person
)
self
.
assertEqual
(
current_invoice
.
getSourceValue
(),
self
.
slapos_organisation
)
self
.
assertEqual
(
current_invoice
.
getSourceSectionValue
(),
self
.
slapos_organisation
)
self
.
assertEqual
(
current_invoice
.
getDestinationValue
(),
person
)
self
.
assertEqual
(
current_invoice
.
getDestinationValue
(),
person
)
self
.
assertEqual
(
current_invoice
.
getDestinationSectionValue
(),
person
)
self
.
assertEqual
(
current_invoice
.
getDestinationSectionValue
(),
person
)
self
.
assertEqual
(
current_invoice
.
getDestinationDecisionValue
(),
person
)
self
.
assertEqual
(
current_invoice
.
getDestinationDecisionValue
(),
person
)
...
...
master/bt5/slapos_subscription_request/TestTemplateItem/portal_components/test.erp5.testSlapOSSubscriptionSkins.xml
View file @
896df1f6
...
@@ -100,25 +100,28 @@
...
@@ -100,25 +100,28 @@
</record>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
patches.WorkflowTool
"
/>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
Workflow
"
/>
</pickle>
</pickle>
<pickle>
<pickle>
<tuple>
<dictionary>
<none/>
<item>
<list>
<key>
<string>
_log
</string>
</key>
<dictionary>
<value>
<item>
<list>
<key>
<string>
action
</string>
</key>
<dictionary>
<value>
<string>
validate
</string>
</value>
<item>
</item>
<key>
<string>
action
</string>
</key>
<item>
<value>
<string>
validate
</string>
</value>
<key>
<string>
validation_state
</string>
</key>
</item>
<value>
<string>
validated
</string>
</value>
<item>
</item>
<key>
<string>
validation_state
</string>
</key>
</dictionary>
<value>
<string>
validated
</string>
</value>
</list>
</item>
<none/>
</dictionary>
</tuple>
</list>
</value>
</item>
</dictionary>
</pickle>
</pickle>
</record>
</record>
</ZopeData>
</ZopeData>
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