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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Cédric Le Ninivin
erp5
Commits
a39643ab
Commit
a39643ab
authored
Dec 05, 2024
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_mrp_quality_assurance: redirect to production packing list if ME is already delivered
parent
455fc345
Pipeline
#38461
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
bt5/erp5_mrp_quality_assurance/SkinTemplateItem/portal_skins/erp5_mrp_quality_assurance/QualityControl_postQualityAssuranceResult.py
...ty_assurance/QualityControl_postQualityAssuranceResult.py
+10
-1
No files found.
bt5/erp5_mrp_quality_assurance/SkinTemplateItem/portal_skins/erp5_mrp_quality_assurance/QualityControl_postQualityAssuranceResult.py
View file @
a39643ab
...
...
@@ -49,7 +49,16 @@ context.post()
if
batch
:
return
context
ME
=
context
.
getCausalityValue
(
portal_type
=
'Manufacturing Execution'
)
return
ME
.
Base_redirect
(
if
ME
.
getSimulationState
()
!=
'delivered'
:
return
ME
.
Base_redirect
(
'view'
,
keep_items
=
{
"portal_status_message"
:
context
.
Base_translateString
(
"Result is posted for ${title}"
,
mapping
=
{
"title"
:
context
.
getTitle
()})
})
po
=
ME
.
getCausalityValue
(
portal_type
=
'Production Order'
)
ppl
=
po
.
getCausalityRelatedValue
(
portal_type
=
'Production Packing List'
)
return
ppl
.
Base_redirect
(
'view'
,
keep_items
=
{
"portal_status_message"
:
context
.
Base_translateString
(
"Result is posted for ${title}"
,
mapping
=
{
"title"
:
context
.
getTitle
()})
...
...
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