Commit 07ee1d9e authored by Łukasz Nowak's avatar Łukasz Nowak

- extend docstring a bit

 - use accessor instead of getProperty for fetching reference on generated movement


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27419 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f46704d0
...@@ -38,7 +38,7 @@ from Products.ERP5.AggregatedAmountList import AggregatedAmountList ...@@ -38,7 +38,7 @@ from Products.ERP5.AggregatedAmountList import AggregatedAmountList
import zope.interface import zope.interface
class TradeModelLine(Predicate, XMLMatrix, Amount): class TradeModelLine(Predicate, XMLMatrix, Amount):
"""Trade Model Line """Trade Model Line is a way to represent trade transformation for movements
""" """
meta_type = 'ERP5 Trade Model Line' meta_type = 'ERP5 Trade Model Line'
portal_type = 'Trade Model Line' portal_type = 'Trade Model Line'
...@@ -115,7 +115,7 @@ class TradeModelLine(Predicate, XMLMatrix, Amount): ...@@ -115,7 +115,7 @@ class TradeModelLine(Predicate, XMLMatrix, Amount):
self_id = self.getParentValue().getId() + '_' + self.getId() self_id = self.getParentValue().getId() + '_' + self.getId()
tmp_movement_list = [q for q in current_aggregated_amount_list \ tmp_movement_list = [q for q in current_aggregated_amount_list \
if q.getProperty('reference') == self.getReference() ] if q.getReference() == self.getReference() ]
if len(tmp_movement_list) > 0: if len(tmp_movement_list) > 0:
tmp_movement_list = tmp_movement_list[:1] tmp_movement_list = tmp_movement_list[:1]
update = 1 update = 1
......
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