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
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
b2b4c444
Commit
b2b4c444
authored
Sep 12, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simulation movement should not lookup base unit price
parent
9a81cae6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
product/ERP5/Document/SimulationMovement.py
product/ERP5/Document/SimulationMovement.py
+7
-2
No files found.
product/ERP5/Document/SimulationMovement.py
View file @
b2b4c444
...
...
@@ -122,14 +122,19 @@ class SimulationMovement(PropertyRecordableMixin, Movement, ExplainableMixin):
""" show the content in the left pane of the ZMI """
return
self
.
objectValues
()
# Price should be acquired
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getPrice'
)
def
getPrice
(
self
,
default
=
None
,
context
=
None
,
REQUEST
=
None
,
**
kw
):
"""
"""
Get the price set locally, without lookup.
"""
return
self
.
_baseGetPrice
(
default
)
# Call the price method
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getBaseUnitPrice'
)
def
getBaseUnitPrice
(
self
,
context
=
None
,
**
kw
):
"""Get the base unit price set locally, without lookup.
"""
return
self
.
_baseGetBaseUnitPrice
()
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getSimulationState'
)
def
getSimulationState
(
self
,
id_only
=
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