Commit 08544a6f authored by Nicolas Wavrant's avatar Nicolas Wavrant

DeliveryType: adds doctstrings

parent a2dbbde0
...@@ -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_'):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment