Commit 6b0350e9 authored by Julien Muchembled's avatar Julien Muchembled

amount_generator: add backward compatibility for intermediate lines

git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@39173 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 17dfaa11
...@@ -289,6 +289,9 @@ class AmountGeneratorMixin: ...@@ -289,6 +289,9 @@ class AmountGeneratorMixin:
break break
if not quantity: if not quantity:
continue continue
# Backward compatibility
if getattr(aq_base(self), 'create_line', None) == 0:
property_dict['resource'] = None
# Create an Amount object # Create an Amount object
amount = newTempAmount(portal, amount = newTempAmount(portal,
# we only want the id to be unique so we pick a random causality # we only want the id to be unique so we pick a random causality
......
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