Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Frederic Thoma
erp5
Commits
13520801
Commit
13520801
authored
Apr 14, 2021
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP: Use new API.
parent
86985db3
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
10 additions
and
9 deletions
+10
-9
bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/script_validateTransactionLines.py
...ow/accounting_workflow/script_validateTransactionLines.py
+1
-1
bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/internal_invoice_transaction_simulation_workflow/script_guessGroupingReference.py
...tion_simulation_workflow/script_guessGroupingReference.py
+1
-1
bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/internal_invoice_transaction_simulation_workflow/script_resetGroupingReference.py
...tion_simulation_workflow/script_resetGroupingReference.py
+1
-1
bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/internal_invoice_transaction_simulation_workflow/script_setReferences.py
...e_transaction_simulation_workflow/script_setReferences.py
+1
-1
bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/internal_invoice_transaction_simulation_workflow/script_validateTransaction.py
...saction_simulation_workflow/script_validateTransaction.py
+1
-1
bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/internal_invoice_transaction_simulation_workflow/script_validateTransactionLines.py
...on_simulation_workflow/script_validateTransactionLines.py
+2
-1
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ERP5Site_dumpPortalSkinsContent.py
...ns/erp5_administration/ERP5Site_dumpPortalSkinsContent.py
+1
-1
bt5/erp5_officejs_support_request_ui/SkinTemplateItem/portal_skins/erp5_officejs_support_request/ERP5Site_getTicketWorkflowWorklistInfoDict.py
...ort_request/ERP5Site_getTicketWorkflowWorklistInfoDict.py
+2
-2
No files found.
bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/script_validateTransactionLines.py
View file @
13520801
...
@@ -13,7 +13,7 @@ section_portal_type_list = ['Person', 'Organisation']
...
@@ -13,7 +13,7 @@ section_portal_type_list = ['Person', 'Organisation']
invalid_state_list
=
[
'invalidated'
,
'deleted'
]
invalid_state_list
=
[
'invalidated'
,
'deleted'
]
# first of all, validate the transaction itself
# first of all, validate the transaction itself
container
.
validateTransaction
(
state_change
)
container
.
getScriptValueByReference
(
'validateTransaction'
)
(
state_change
)
# Check that all lines uses open accounts, and doesn't use invalid third
# Check that all lines uses open accounts, and doesn't use invalid third
...
...
bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/internal_invoice_transaction_simulation_workflow/script_guessGroupingReference.py
View file @
13520801
return
sci
.
getPortal
().
portal_workflow
.
accounting_workflow
.
scripts
[
script
.
getId
()]
(
sci
)
return
sci
.
getPortal
().
portal_workflow
.
accounting_workflow
.
getScriptValueByReference
(
script
.
getReference
())
(
sci
)
bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/internal_invoice_transaction_simulation_workflow/script_resetGroupingReference.py
View file @
13520801
return
sci
.
getPortal
().
portal_workflow
.
accounting_workflow
.
scripts
[
script
.
getId
()]
(
sci
)
return
sci
.
getPortal
().
portal_workflow
.
accounting_workflow
.
getScriptValueByReference
(
script
.
getReference
())
(
sci
)
bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/internal_invoice_transaction_simulation_workflow/script_setReferences.py
View file @
13520801
return
state_change
.
getPortal
().
portal_workflow
.
accounting_workflow
.
scripts
[
script
.
getId
()]
(
state_change
)
return
state_change
.
getPortal
().
portal_workflow
.
accounting_workflow
.
getScriptValueByReference
(
script
.
getReference
())
(
state_change
)
bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/internal_invoice_transaction_simulation_workflow/script_validateTransaction.py
View file @
13520801
return
state_change
.
getPortal
().
portal_workflow
.
accounting_workflow
.
scripts
[
script
.
getId
()]
(
state_change
)
return
state_change
.
getPortal
().
portal_workflow
.
accounting_workflow
.
getScriptValueByReference
(
script
.
getReference
())
(
state_change
)
bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/internal_invoice_transaction_simulation_workflow/script_validateTransactionLines.py
View file @
13520801
...
@@ -7,4 +7,5 @@ if old_state.getId() == 'draft':
...
@@ -7,4 +7,5 @@ if old_state.getId() == 'draft':
if
internal_invoice
.
InternalInvoiceTransaction_getAuthenticatedUserSection
()
==
internal_invoice
.
getDestinationSection
():
if
internal_invoice
.
InternalInvoiceTransaction_getAuthenticatedUserSection
()
==
internal_invoice
.
getDestinationSection
():
raise
ValidationFailed
(
translateString
(
"Your entity should not be destination."
))
raise
ValidationFailed
(
translateString
(
"Your entity should not be destination."
))
return
state_change
.
getPortal
().
portal_workflow
.
accounting_workflow
.
scripts
[
script
.
getId
()](
state_change
)
script
=
state_change
.
getPortal
().
portal_workflow
.
accounting_workflow
.
getScriptValueByReference
(
script
.
getReference
())
return
script
(
state_change
)
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ERP5Site_dumpPortalSkinsContent.py
View file @
13520801
...
@@ -31,7 +31,7 @@ for skin_folder in portal.portal_skins.objectValues('Folder'):
...
@@ -31,7 +31,7 @@ for skin_folder in portal.portal_skins.objectValues('Folder'):
if
include_workflow_scripts
:
if
include_workflow_scripts
:
for
workflow
in
portal
.
portal_workflow
.
objectValues
():
for
workflow
in
portal
.
portal_workflow
.
objectValues
():
for
skin
in
workflow
.
scripts
.
objectValues
():
for
skin
in
workflow
.
getScriptValueList
():
print
getSkinHash
(
skin
,
workflow
)
print
getSkinHash
(
skin
,
workflow
)
container
.
REQUEST
.
RESPONSE
.
setHeader
(
'content-type'
,
'text/plain'
)
container
.
REQUEST
.
RESPONSE
.
setHeader
(
'content-type'
,
'text/plain'
)
...
...
bt5/erp5_officejs_support_request_ui/SkinTemplateItem/portal_skins/erp5_officejs_support_request/ERP5Site_getTicketWorkflowWorklistInfoDict.py
View file @
13520801
...
@@ -10,9 +10,9 @@ portal = context.getPortalObject()
...
@@ -10,9 +10,9 @@ portal = context.getPortalObject()
query_dict
=
{}
query_dict
=
{}
workflow
=
portal
.
portal_workflow
.
ticket_workflow
workflow
=
portal
.
portal_workflow
.
ticket_workflow
workflow_state_var
=
workflow
.
variables
.
getStateVar
()
workflow_state_var
=
workflow
.
getStateVariable
()
for
worklist
in
workflow
.
worklists
.
objectValues
():
for
worklist
in
workflow
.
getWorklistValueList
():
identity_criterion_dict
=
worklist
.
getIdentityCriterionDict
()
identity_criterion_dict
=
worklist
.
getIdentityCriterionDict
()
if
portal_type
\
if
portal_type
\
and
'portal_type'
in
worklist
.
getCriterionPropertyList
()
\
and
'portal_type'
in
worklist
.
getCriterionPropertyList
()
\
...
...
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