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
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alecs_myu
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
Hide 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):
...
@@ -122,14 +122,19 @@ class SimulationMovement(PropertyRecordableMixin, Movement, ExplainableMixin):
""" show the content in the left pane of the ZMI """
""" show the content in the left pane of the ZMI """
return
self
.
objectValues
()
return
self
.
objectValues
()
# Price should be acquired
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getPrice'
)
'getPrice'
)
def
getPrice
(
self
,
default
=
None
,
context
=
None
,
REQUEST
=
None
,
**
kw
):
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
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
,
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getSimulationState'
)
'getSimulationState'
)
def
getSimulationState
(
self
,
id_only
=
1
):
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