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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
erp5
Commits
08544a6f
Commit
08544a6f
authored
Jun 20, 2016
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DeliveryType: adds doctstrings
parent
a2dbbde0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
product/ERP5Type/DeliveryType.py
product/ERP5Type/DeliveryType.py
+3
-0
No files found.
product/ERP5Type/DeliveryType.py
View file @
08544a6f
...
@@ -34,6 +34,8 @@ from zLOG import LOG
...
@@ -34,6 +34,8 @@ from zLOG import LOG
class
DeliveryType
(
ERP5TypeInformation
):
class
DeliveryType
(
ERP5TypeInformation
):
"""
"""
Base type for Delivery Type.
Base type for Delivery Type.
A DeliveryType is a BaseType on which a list of ledgers is set,
which is the list of ledger allowed on the delivery objects.
"""
"""
security
=
ClassSecurityInfo
()
security
=
ClassSecurityInfo
()
security
.
declareObjectProtected
(
Permissions
.
AccessContentsInformation
)
security
.
declareObjectProtected
(
Permissions
.
AccessContentsInformation
)
...
@@ -43,6 +45,7 @@ class DeliveryType(ERP5TypeInformation):
...
@@ -43,6 +45,7 @@ class DeliveryType(ERP5TypeInformation):
security
.
declarePublic
(
'constructInstance'
)
security
.
declarePublic
(
'constructInstance'
)
def
constructInstance
(
self
,
*
args
,
**
kw
):
def
constructInstance
(
self
,
*
args
,
**
kw
):
"Creates a new delivery with a default ledger found on the portal type"
has_ledger_parameter
=
False
has_ledger_parameter
=
False
for
k
in
kw
:
for
k
in
kw
:
if
k
.
startswith
(
'ledger_'
):
if
k
.
startswith
(
'ledger_'
):
...
...
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