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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
erp5
Commits
d958b1a1
Commit
d958b1a1
authored
Feb 04, 2014
by
Julien Muchembled
Committed by
Sebastien Robin
Feb 17, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MRP: add compatibility code for unit tests that wrongly use 'industrial_phase'
parent
e008fa3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
product/ERP5/Document/Amount.py
product/ERP5/Document/Amount.py
+6
-1
No files found.
product/ERP5/Document/Amount.py
View file @
d958b1a1
...
@@ -91,7 +91,12 @@ class Amount(Base, VariatedMixin):
...
@@ -91,7 +91,12 @@ class Amount(Base, VariatedMixin):
return
[]
return
[]
variation_list
=
resource
.
getVariationBaseCategoryList
(
variation_list
=
resource
.
getVariationBaseCategoryList
(
omit_optional_variation
=
omit_optional_variation
)
omit_optional_variation
=
omit_optional_variation
)
variation_list
.
append
(
'industrial_phase'
)
# BBB: 'industrial_phase' should be used exclusively for production and
# should not appear on resource. But many unit tests still use it.
# For the same reason, we treat as an optional variation.
if
(
'industrial_phase'
not
in
variation_list
and
not
omit_optional_variation
):
variation_list
.
append
(
'industrial_phase'
)
if
base_category_list
:
if
base_category_list
:
variation_list
=
filter
(
base_category_list
.
__contains__
,
variation_list
)
variation_list
=
filter
(
base_category_list
.
__contains__
,
variation_list
)
return
self
.
getAcquiredCategoryMembershipList
(
variation_list
,
base
=
1
)
return
self
.
getAcquiredCategoryMembershipList
(
variation_list
,
base
=
1
)
...
...
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