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
Léo-Paul Géneau
erp5
Commits
8159b324
Commit
8159b324
authored
Oct 18, 2017
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_mrp: Update Transformation on Order Line if resource changed
parent
471bd309
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/ProductionOrderLine_setTransformationFromResource.py
..._mrp/ProductionOrderLine_setTransformationFromResource.py
+4
-1
No files found.
bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/ProductionOrderLine_setTransformationFromResource.py
View file @
8159b324
...
...
@@ -3,7 +3,8 @@ portal = production_order_line.getPortalObject()
transformation
=
production_order_line
.
getSpecialiseValue
(
portal_type
=
portal
.
getPortalTransformationTypeList
())
if
transformation
is
None
:
if
transformation
is
None
\
or
(
transformation
.
getResource
()
!=
production_order_line
.
getResource
()):
resource_uid
=
production_order_line
.
getResourceUid
()
if
resource_uid
:
transformation_list
=
portal
.
portal_catalog
(
...
...
@@ -13,3 +14,5 @@ if transformation is None:
if
len
(
transformation_list
)
==
1
:
transformation
=
transformation_list
[
0
].
getRelativeUrl
()
production_order_line
.
setSpecialise
(
transformation
)
return
production_order_line
.
setSpecialise
(
None
)
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