Discussion:
[Erp5-dev] Corner case in Task Report Generation
Mikolaj Antoszkiewicz
2008-02-28 14:31:18 UTC
Permalink
Hello,

I came across such case:
On Task - DestinationDecision is NOT set, Destinaton is an Organisation.
Under those circumstances
TaskReport_copyOrderPropertiesAndNotifyAssignee script raises
AttributeError since destination_decision_person is not set and it tries
to get its Title.

Maybe it would be enough to change this line (26):
destination_decision_person =
context.getDestinationValue(portal_type="Person")

into this:
destination_decision_person = context.getDestinationValue(portal_type=
["Person", "Organisation"])

I guess this need rethinking on the design level, so I'm not proposing
any patches now.

Mikolaj

Loading...