Commit 6ccdb59c authored by Jérome Perrin's avatar Jérome Perrin

Remove FTI. wrap to 80 characters


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5480 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9312ac1a
...@@ -73,62 +73,9 @@ class InvoiceLine(DeliveryLine): ...@@ -73,62 +73,9 @@ class InvoiceLine(DeliveryLine):
, PropertySheet.CopyrightTax , PropertySheet.CopyrightTax
) )
# Factory Type Information
factory_type_information = \
{ 'id' : portal_type
, 'meta_type' : meta_type
, 'description' : """\
Une ligne tarifaire."""
, 'icon' : 'order_line_icon.gif'
, 'product' : 'ERP5'
, 'factory' : 'addInvoiceLine'
, 'immediate_view' : 'invoice_line_view'
, 'allow_discussion' : 1
, 'allowed_content_types': ('Invoice Cell',
)
, 'filter_content_types' : 1
, 'global_allow' : 1
, 'actions' :
( { 'id' : 'view'
, 'name' : 'View'
, 'category' : 'object_view'
, 'action' : 'invoice_line_view'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'list'
, 'name' : 'Object Contents'
, 'category' : 'object_action'
, 'action' : 'folder_contents'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'print'
, 'name' : 'Print'
, 'category' : 'object_print'
, 'action' : 'order_line_print'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'metadata'
, 'name' : 'Metadata'
, 'category' : 'object_view'
, 'action' : 'metadata_edit'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'translate'
, 'name' : 'Translate'
, 'category' : 'object_action'
, 'action' : 'translation_template_view'
, 'permissions' : (
Permissions.TranslateContent, )
}
)
}
# Cell Related # Cell Related
security.declareProtected( Permissions.ModifyPortalContent, 'newCellContent' ) security.declareProtected( Permissions.ModifyPortalContent,
'newCellContent' )
def newCellContent(self, id,**kw): def newCellContent(self, id,**kw):
""" """
This method can be overriden This method can be overriden
...@@ -136,7 +83,8 @@ Une ligne tarifaire.""" ...@@ -136,7 +83,8 @@ Une ligne tarifaire."""
self.invokeFactory(type_name="Invoice Cell",id=id) self.invokeFactory(type_name="Invoice Cell",id=id)
return self.get(id) return self.get(id)
security.declareProtected(Permissions.AccessContentsInformation, 'isAccountable') security.declareProtected( Permissions.AccessContentsInformation,
'isAccountable' )
def isAccountable(self): def isAccountable(self):
""" """
Returns 1 if this needs to be accounted Returns 1 if this needs to be accounted
...@@ -146,7 +94,8 @@ Une ligne tarifaire.""" ...@@ -146,7 +94,8 @@ Une ligne tarifaire."""
# Never accountable # Never accountable
return 0 return 0
security.declareProtected(Permissions.View, 'isDivergent') security.declareProtected( Permissions.AccessContentsInformation,
'isDivergent' )
def isDivergent(self): def isDivergent(self):
""" """
Returns 1 if the target is not met according to the current information Returns 1 if the target is not met according to the current information
...@@ -158,7 +107,8 @@ Une ligne tarifaire.""" ...@@ -158,7 +107,8 @@ Une ligne tarifaire."""
# Never divergent # Never divergent
return 0 return 0
security.declareProtected(Permissions.AccessContentsInformation, 'getGroupCriterion') security.declareProtected( Permissions.AccessContentsInformation,
'getGroupCriterion' )
def getGroupCriterion(self): def getGroupCriterion(self):
""" """
Return the criterion for grouping. This should be overriden by each class. Return the criterion for grouping. This should be overriden by each class.
......
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