Commit e586a1ce authored by Sebastien Robin's avatar Sebastien Robin

a TradeCondition should be a subclass of Path, not an Order


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3109 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 62d72778
...@@ -31,10 +31,9 @@ from Globals import InitializeClass, PersistentMapping ...@@ -31,10 +31,9 @@ from Globals import InitializeClass, PersistentMapping
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface
from Products.ERP5.Document.Order import Order from Products.ERP5.Document.Path import Path
from Products.ERP5.Document.Delivery import Delivery
class TradeCondition(Order): class TradeCondition(Path):
""" """
Trade Conditions are used to store the conditions (payment, logistic,...) Trade Conditions are used to store the conditions (payment, logistic,...)
which should be applied (and used in the orders) when two companies make which should be applied (and used in the orders) when two companies make
...@@ -43,6 +42,7 @@ class TradeCondition(Order): ...@@ -43,6 +42,7 @@ class TradeCondition(Order):
meta_type = 'ERP5 Trade Condition' meta_type = 'ERP5 Trade Condition'
portal_type = 'Trade Condition' portal_type = 'Trade Condition'
isPredicate = 1
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
...@@ -57,7 +57,3 @@ class TradeCondition(Order): ...@@ -57,7 +57,3 @@ class TradeCondition(Order):
, PropertySheet.TradeCondition , PropertySheet.TradeCondition
) )
# XXX This should be removed once interaction tool is implemented
security.declarePrivate( '_edit' )
def _edit(self, REQUEST=None, force_update=0, **kw):
Delivery._edit(self, REQUEST=REQUEST, force_update = force_update, **kw)
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