From 219ecfaf36d217e94bdb0e0d2ea27ecae0e75458 Mon Sep 17 00:00:00 2001 From: Nicolas Delaby <nicolas@nexedi.com> Date: Wed, 9 Feb 2011 09:27:05 +0000 Subject: [PATCH] Before http://svn.erp5.org?rev=43181&view=rev OpenOrders (and sub content) Where instances of Orders. Restore this property to not break current implementation, even if the question "OpenOrder are Orders or not ?" stay open. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43215 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/OpenOrder.py | 3 ++- product/ERP5/Document/OpenOrderCell.py | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/product/ERP5/Document/OpenOrder.py b/product/ERP5/Document/OpenOrder.py index 180d495b0b..063528db4c 100644 --- a/product/ERP5/Document/OpenOrder.py +++ b/product/ERP5/Document/OpenOrder.py @@ -33,8 +33,9 @@ from AccessControl import ClassSecurityInfo from Products.ERP5Type import Permissions, PropertySheet, interfaces from Products.ERP5Type.Accessor.Constant import PropertyGetter as ConstantGetter from Products.ERP5.Document.Supply import Supply +from Products.ERP5.Document.Order import Order -class OpenOrder(Supply): +class OpenOrder(Supply, Order): """ An OpenOrder is a collection of Open Order Lines diff --git a/product/ERP5/Document/OpenOrderCell.py b/product/ERP5/Document/OpenOrderCell.py index b5ff967e61..4e1e9522b8 100644 --- a/product/ERP5/Document/OpenOrderCell.py +++ b/product/ERP5/Document/OpenOrderCell.py @@ -29,11 +29,16 @@ from AccessControl import ClassSecurityInfo from Products.ERP5Type import Permissions, PropertySheet from Products.ERP5.Document.SupplyCell import SupplyCell +from Products.ERP5.Document.OrderCell import OrderCell -class OpenOrderCell(SupplyCell): +class OpenOrderCell(SupplyCell, OrderCell): """ A OpenOrderCell allows to define specific quantities for each variation of a resource in an Open Order Line. + + TODO: + - make sure that this should be (or not) a subclass + of OrderCell """ meta_type = 'ERP5 Open Order Cell' portal_type = 'Open Order Cell' -- 2.30.9