Commit 21a684fd authored by Fabien Morin's avatar Fabien Morin

- remove getattr : start_date and stop_date are properties of context

- fix typo : stop_date=start_date


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27649 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 17833a37
...@@ -171,10 +171,8 @@ class TradeCondition(Path, Transformation, XMLMatrix): ...@@ -171,10 +171,8 @@ class TradeCondition(Path, Transformation, XMLMatrix):
# for contained Trade Model Lines # for contained Trade Model Lines
document = context.getExplanationValue() document = context.getExplanationValue()
containting_object_list.append(document) containting_object_list.append(document)
start_date = getattr(context, 'start_date', None)
stop_date = getattr(context, 'stop_date', None)
containting_object_list.extend(self.findEffectiveSpecialiseValueList(context=self, containting_object_list.extend(self.findEffectiveSpecialiseValueList(context=self,
start_date=start_date, stop_date=start_date)) start_date=context.getStartDate(), stop_date=context.getStopDate()))
for specialise in containting_object_list: for specialise in containting_object_list:
for trade_model_line in specialise.contentValues( for trade_model_line in specialise.contentValues(
......
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