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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Hardik Juneja
erp5
Commits
a81a2a39
Commit
a81a2a39
authored
Feb 04, 2014
by
Julien Muchembled
Committed by
Sebastien Robin
Mar 06, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip
parent
58d778e3
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 @
a81a2a39
...
@@ -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