From 3cf9c72fac707a2fbe719f09884250454eb707f0 Mon Sep 17 00:00:00 2001 From: Alexandre Boeglin <alex@nexedi.com> Date: Mon, 16 Jan 2006 16:43:30 +0000 Subject: [PATCH] Added a FIXME reminder : For now, special cases are handled in _edit methods in many documents : DeliveryLine, DeliveryCell ... Ideally, to prevent code duplication, it should be handled in a _edit method present only in Amount.py git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5132 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/DeliveryLine.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/product/ERP5/Document/DeliveryLine.py b/product/ERP5/Document/DeliveryLine.py index 6ad6feeae3..db1db82475 100755 --- a/product/ERP5/Document/DeliveryLine.py +++ b/product/ERP5/Document/DeliveryLine.py @@ -89,6 +89,11 @@ class DeliveryLine(Movement, XMLObject, XMLMatrix, Variated): # Force in _edit to modify variation_base_category_list first security.declarePrivate( '_edit' ) def _edit(self, REQUEST=None, force_update = 0, **kw): + # XXX FIXME For now, special cases are handled in _edit methods in many + # documents : DeliveryLine, DeliveryCell ... Ideally, to prevent code + # duplication, it should be handled in a _edit method present only in + # Amount.py + # If variations and resources are set at the same time, resource must be # set before any variation. if kw.has_key('resource_value'): -- 2.30.9