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
8a968f60
Commit
8a968f60
authored
Aug 27, 2024
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_mrp_quality_assurance: checking defects are opened also check the state of objects
parent
f12ee56a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
bt5/erp5_mrp_quality_assurance/SkinTemplateItem/portal_skins/erp5_mrp_quality_assurance/ACOM_validate.py
.../portal_skins/erp5_mrp_quality_assurance/ACOM_validate.py
+8
-8
No files found.
bt5/erp5_mrp_quality_assurance/SkinTemplateItem/portal_skins/erp5_mrp_quality_assurance/ACOM_validate.py
View file @
8a968f60
...
@@ -8,14 +8,14 @@ if incompleted_list:
...
@@ -8,14 +8,14 @@ if incompleted_list:
"portal_status_level"
:
"error"
"portal_status_level"
:
"error"
})
})
defect_item
=
context
.
Base_getManufacturingExecutionRelatedDefectList
(
portal_type
=
'Defect Item'
,
validation_state
=
'opened'
)
opened_defect_list
=
context
.
Base_getManufacturingExecutionRelatedDefectList
(
portal_type
=
'Defect Item'
,
validation_state
=
'opened'
)
# We get the object in case immediateReindexObject was not immediate
for
defect
in
opened_defect_list
:
if
defect_item
:
if
defect
.
getObject
().
getValidationState
()
==
"opened"
:
return
context
.
Base_redirect
(
'view'
,
keep_items
=
{
return
context
.
Base_redirect
(
'view'
,
keep_items
=
{
"portal_status_message"
:
context
.
Base_translateString
(
"Defects are not closed"
),
"portal_status_message"
:
context
.
Base_translateString
(
"Defects are not closed"
),
"portal_status_level"
:
"error"
"portal_status_level"
:
"error"
})
})
user_value
=
context
.
portal_membership
.
getAuthenticatedMember
().
getUserValue
()
user_value
=
context
.
portal_membership
.
getAuthenticatedMember
().
getUserValue
()
...
...
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