diff --git a/modules/purchase_trade/pricing.py b/modules/purchase_trade/pricing.py index c0fb8f8..fe5e5a4 100755 --- a/modules/purchase_trade/pricing.py +++ b/modules/purchase_trade/pricing.py @@ -102,7 +102,7 @@ class MtmStrategy(ModelSQL, ModelView): for comp in self.components: value = Decimal(0) - if comp.price_source_type == 'curve' and comp.price_curve: + if comp.price_source_type == 'curve' and comp.price_index: value = Decimal( comp.price_index.get_price( dt,