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
Léo-Paul Géneau
erp5
Commits
124e8d9a
Commit
124e8d9a
authored
Jul 29, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove getInventoriated[Start|Stop]Date methods that are not part of the API
parent
40261159
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
30 deletions
+1
-30
product/ERP5/Document/AccountingTransactionLine.py
product/ERP5/Document/AccountingTransactionLine.py
+1
-18
product/ERP5/Document/DeliveryLine.py
product/ERP5/Document/DeliveryLine.py
+0
-12
No files found.
product/ERP5/Document/AccountingTransactionLine.py
View file @
124e8d9a
...
...
@@ -68,23 +68,6 @@ class AccountingTransactionLine(DeliveryLine):
"""
return
Amount
.
getInventoriatedQuantity
(
self
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getInventoriatedStartDate'
)
def
getInventoriatedStartDate
(
self
):
"""
Get the start date.
"""
return
self
.
getStartDate
()
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getInventoriatedStopDate'
)
def
getInventoriatedStopDate
(
self
):
"""
Get the stop date.
"""
return
self
.
getStopDate
()
# Pricing in standard currency
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getPrice'
)
def
getPrice
(
self
,
context
=
None
):
...
...
@@ -94,7 +77,7 @@ class AccountingTransactionLine(DeliveryLine):
converted value for source in getSourceInventoriatedTotalAssetPrice
and getDestinationInventoriatedTotalAssetPrice for destination.
"""
return
1.0
return
1.0
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getSourceAssetPrice'
)
...
...
product/ERP5/Document/DeliveryLine.py
View file @
124e8d9a
...
...
@@ -259,18 +259,6 @@ class DeliveryLine(Movement, XMLObject, XMLMatrix, ImmobilisationMovement):
"""
return
Movement
.
getInventoriatedQuantity
(
self
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getInventoriatedStartDate'
)
def
getInventoriatedStartDate
(
self
):
"""
"""
return
Movement
.
getStartDate
(
self
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getInventoriatedStopDate'
)
def
getInventoriatedStopDate
(
self
):
"""
"""
return
Movement
.
getStopDate
(
self
)
# security.declarePrivate('_checkConsistency')
# def _checkConsistency(self, fixit=0, mapped_value_property_list = ('quantity', 'price')):
# """
...
...
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