Commit f2a93f80 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

remove useless methods.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31980 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fa3b5dec
......@@ -96,16 +96,6 @@ class DeliveryRule(Rule):
meta_type = 'ERP5 Delivery Rule'
portal_type = 'Delivery Rule'
# XXX this method is missing in interface.
def isOrderable(self, movement):
return 1
# XXX this method is missing in interface.
def isDeliverable(self, movement):
if movement.getSimulationState() in movement.getPortalDraftOrderStateList():
return 0
return 1
def _getMovementGenerator(self):
"""
Return the movement generator to use in the expand process
......
......@@ -96,16 +96,6 @@ class InvoiceTransactionRule(Rule, PredicateMatrix):
meta_type = 'ERP5 Invoice Transaction Rule'
portal_type = 'Invoice Transaction Rule'
# XXX this method is missing in interface.
def isOrderable(self, movement):
return 1
# XXX this method is missing in interface.
def isDeliverable(self, movement):
if movement.getSimulationState() in movement.getPortalDraftOrderStateList():
return 0
return 1
def _getMovementGenerator(self):
"""
Return the movement generator to use in the expand process
......
......@@ -93,16 +93,6 @@ class InvoicingRule(Rule):
meta_type = 'ERP5 Invoicing Rule'
portal_type = 'Invoicing Rule'
# XXX this method is missing in interface.
def isOrderable(self, movement):
return 1
# XXX this method is missing in interface.
def isDeliverable(self, movement):
if movement.getSimulationState() in movement.getPortalDraftOrderStateList():
return 0
return 1
def _getMovementGenerator(self):
"""
Return the movement generator to use in the expand process
......
......@@ -96,16 +96,6 @@ class OrderRule(Rule):
meta_type = 'ERP5 Order Rule'
portal_type = 'Order Rule'
# XXX this method is missing in interface.
def isOrderable(self, movement):
return 1
# XXX this method is missing in interface.
def isDeliverable(self, movement):
if movement.getSimulationState() in movement.getPortalDraftOrderStateList():
return 0
return 1
def _getMovementGenerator(self):
"""
Return the movement generator to use in the expand process
......
......@@ -93,14 +93,6 @@ class TradeModelRule(Rule):
meta_type = 'ERP5 Trade Model Rule'
portal_type = 'Trade Model Rule'
# XXX this method is missing in interface.
def isOrderable(self, movement):
return 0
# XXX this method is missing in interface.
def isDeliverable(self, movement):
return 0
def _getMovementGenerator(self):
"""
Return the movement generator to use in the expand process
......
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