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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
449d5e67
Commit
449d5e67
authored
Jun 21, 2022
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_crm: stop setting person as source_project
parent
77808337
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
5 deletions
+4
-5
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm/Person_checkToCreateRegularisationRequest.py
...s/slapos_crm/Person_checkToCreateRegularisationRequest.py
+1
-2
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm/RegularisationRequest_deleteInstanceTreeList.py
...lapos_crm/RegularisationRequest_deleteInstanceTreeList.py
+1
-1
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm/RegularisationRequest_invalidateIfPersonBalanceIsOk.py
...rm/RegularisationRequest_invalidateIfPersonBalanceIsOk.py
+1
-1
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm/RegularisationRequest_stopInstanceTreeList.py
.../slapos_crm/RegularisationRequest_stopInstanceTreeList.py
+1
-1
No files found.
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm/Person_checkToCreateRegularisationRequest.py
View file @
449d5e67
...
...
@@ -16,7 +16,7 @@ ticket_portal_type = "Regularisation Request"
ticket
=
portal
.
portal_catalog
.
getResultValue
(
portal_type
=
ticket_portal_type
,
default_
source_project
_uid
=
person
.
getUid
(),
default_
destination
_uid
=
person
.
getUid
(),
simulation_state
=
[
'suspended'
,
'validated'
],
)
...
...
@@ -51,7 +51,6 @@ if int(outstanding_amount) > 0:
portal
.
portal_preferences
.
getPreferredRegularisationRequestTemplate
())
ticket
=
regularisation_request_template
.
Base_createCloneDocument
(
batch_mode
=
1
)
ticket
.
edit
(
source_project_value
=
context
,
title
=
'Account regularisation expected for "%s"'
%
context
.
getTitle
(),
destination_decision_value
=
context
,
destination_value
=
context
,
...
...
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm/RegularisationRequest_deleteInstanceTreeList.py
View file @
449d5e67
...
...
@@ -4,7 +4,7 @@ if REQUEST is not None:
ticket
=
context
state
=
ticket
.
getSimulationState
()
person
=
ticket
.
get
SourceProject
Value
(
portal_type
=
"Person"
)
person
=
ticket
.
get
DestinationDecision
Value
(
portal_type
=
"Person"
)
if
(
state
==
'suspended'
)
and
\
(
person
is
not
None
)
and
\
(
ticket
.
getResource
()
==
'service_module/slapos_crm_delete_acknowledgement'
):
...
...
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm/RegularisationRequest_invalidateIfPersonBalanceIsOk.py
View file @
449d5e67
...
...
@@ -3,7 +3,7 @@ if REQUEST is not None:
raise
Unauthorized
state
=
context
.
getSimulationState
()
person
=
context
.
get
SourceProject
Value
(
portal_type
=
"Person"
)
person
=
context
.
get
DestinationDecision
Value
(
portal_type
=
"Person"
)
if
(
state
not
in
(
'suspended'
,
'validated'
))
or
\
(
person
is
None
):
return
...
...
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm/RegularisationRequest_stopInstanceTreeList.py
View file @
449d5e67
...
...
@@ -4,7 +4,7 @@ if REQUEST is not None:
ticket
=
context
state
=
ticket
.
getSimulationState
()
person
=
ticket
.
get
SourceProject
Value
(
portal_type
=
"Person"
)
person
=
ticket
.
get
DestinationDecision
Value
(
portal_type
=
"Person"
)
if
(
state
==
'suspended'
)
and
\
(
person
is
not
None
)
and
\
(
ticket
.
getResource
()
in
[
'service_module/slapos_crm_stop_acknowledgement'
,
'service_module/slapos_crm_delete_reminder'
,
'service_module/slapos_crm_delete_acknowledgement'
]):
...
...
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