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
Labels
Merge Requests
138
Merge Requests
138
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
1d45a963
Commit
1d45a963
authored
Jun 18, 2020
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: remove deprecated SimulationTool.getConvertedInventoryList
parent
aba1d3d2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
product/ERP5/bootstrap/erp5_core/ToolComponentTemplateItem/portal_components/tool.erp5.SimulationTool.py
...emplateItem/portal_components/tool.erp5.SimulationTool.py
+0
-19
No files found.
product/ERP5/bootstrap/erp5_core/ToolComponentTemplateItem/portal_components/tool.erp5.SimulationTool.py
View file @
1d45a963
...
@@ -1650,25 +1650,6 @@ class SimulationTool(BaseTool):
...
@@ -1650,25 +1650,6 @@ class SimulationTool(BaseTool):
),
),
)
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getConvertedInventoryList'
)
def
getConvertedInventoryList
(
self
,
simulation_period
=
''
,
**
kw
):
"""
Return list of inventory with a 'converted_quantity' additional column,
which contains the sum of measurements for the specified metric type,
expressed in the 'quantity_unit' unit.
metric_type - category
quantity_unit - category
"""
warn
(
'getConvertedInventoryList is Deprecated, use '
\
'getInventory instead.'
,
DeprecationWarning
)
method
=
getattr
(
self
,
'get%sInventoryList'
%
simulation_period
)
return
method
(
**
kw
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getAllInventoryList'
)
'getAllInventoryList'
)
def
getAllInventoryList
(
self
,
src__
=
0
,
**
kw
):
def
getAllInventoryList
(
self
,
src__
=
0
,
**
kw
):
...
...
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