Commit 3cf9c72f authored by Alexandre Boeglin's avatar Alexandre Boeglin

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
parent 6a4a8554
...@@ -89,6 +89,11 @@ class DeliveryLine(Movement, XMLObject, XMLMatrix, Variated): ...@@ -89,6 +89,11 @@ class DeliveryLine(Movement, XMLObject, XMLMatrix, Variated):
# Force in _edit to modify variation_base_category_list first # Force in _edit to modify variation_base_category_list first
security.declarePrivate( '_edit' ) security.declarePrivate( '_edit' )
def _edit(self, REQUEST=None, force_update = 0, **kw): 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 # If variations and resources are set at the same time, resource must be
# set before any variation. # set before any variation.
if kw.has_key('resource_value'): if kw.has_key('resource_value'):
......
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