Get currency for party crash when company is -1 in the context
It is common to use -1
as fallback value for context. So if the context when reading a party has company = -1
, Party.get_currency()
crashes because it uses a new instance of company which does not have a currency value.