Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush Tiwari
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
Show 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,6 +91,11 @@ class Amount(Base, VariatedMixin):
return
[]
variation_list
=
resource
.
getVariationBaseCategoryList
(
omit_optional_variation
=
omit_optional_variation
)
# 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
:
variation_list
=
filter
(
base_category_list
.
__contains__
,
variation_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