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
a56c286f
Commit
a56c286f
authored
Dec 05, 2019
by
Xiaowu Zhang
Committed by
Cédric Le Ninivin
Mar 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_production_planning: don't include not editable production order
parent
c9f60468
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
bt5/erp5_production_planning/WorkflowTemplateItem/portal_workflow/production_planning_interaction_workflow/scripts/ProductionPlanning_applyProductionPlanningChanges.py
...ipts/ProductionPlanning_applyProductionPlanningChanges.py
+2
-1
No files found.
bt5/erp5_production_planning/WorkflowTemplateItem/portal_workflow/production_planning_interaction_workflow/scripts/ProductionPlanning_applyProductionPlanningChanges.py
View file @
a56c286f
...
@@ -30,7 +30,8 @@ for cell_keys in production_planning.getCellKeys():
...
@@ -30,7 +30,8 @@ for cell_keys in production_planning.getCellKeys():
# Check if it existes a production order for the date
# Check if it existes a production order for the date
kw
=
{
kw
=
{
'portal_type'
:
'Production Order'
,
'portal_type'
:
'Production Order'
,
'delivery.start_date'
:
{
'query'
:
start_date
,
'type'
:
'date'
}
'delivery.start_date'
:
{
'query'
:
start_date
,
'type'
:
'date'
},
'simulation_state'
:
(
'planned'
,
'auto_planned'
)
}
}
production_order_list
=
catalog_method
(
**
kw
)
production_order_list
=
catalog_method
(
**
kw
)
if
len
(
production_order_list
):
if
len
(
production_order_list
):
...
...
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