From 324f3b9a6527cdda512fb25aef6d8568378949c7 Mon Sep 17 00:00:00 2001
From: Fabien Morin <fabien@nexedi.com>
Date: Mon, 8 Jun 2009 13:31:46 +0000
Subject: [PATCH] inheritate from Predicate. This permit to have the test
 method on TradeModelLine (used in getAggregatedAmountList)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27412 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/TradeModelLine.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/product/ERP5/Document/TradeModelLine.py b/product/ERP5/Document/TradeModelLine.py
index 708009d39f..d497836c29 100644
--- a/product/ERP5/Document/TradeModelLine.py
+++ b/product/ERP5/Document/TradeModelLine.py
@@ -32,11 +32,12 @@ from AccessControl import ClassSecurityInfo
 from Products.ERP5Type import Permissions, PropertySheet, interfaces
 from Products.ERP5Type.XMLMatrix import XMLMatrix
 from Products.ERP5.Document.Amount import Amount
+from Products.ERP5.Document.Predicate import Predicate
 from Products.ERP5Type.Utils import cartesianProduct
 from Products.ERP5.AggregatedAmountList import AggregatedAmountList
 import zope.interface
 
-class TradeModelLine(XMLMatrix, Amount):
+class TradeModelLine(Predicate, XMLMatrix, Amount):
     """Trade Model Line
     """
     meta_type = 'ERP5 Trade Model Line'
@@ -59,6 +60,7 @@ class TradeModelLine(XMLMatrix, Amount):
                     , PropertySheet.Price
                     , PropertySheet.TradeModelLine
                     , PropertySheet.Reference
+                    , PropertySheet.Predicate
                     )
 
     def getPrice(self):
-- 
2.30.9