Comment 7 for bug 997316

Revision history for this message
Ronald Portier (Therp) (rportier1962) wrote :

Hello Stefan,

The significant part of the backtrace is starting from the _centralize
call. No difference with the original bug in what I encountered.

I agree with you that having a currency the same as the company currency
here is wrong. As are all instances of currency_id filled (= not null)
en amount_currency not filled (null).

But given the fact that both currency_id and amount_currency are null
capable, one way or another this situation can occur in the database,
and the _centralize code should be protected from this.

Of course the places in the code where these values are introduced into
the database are bugs in their own right.

Kind regards, Ronald