Comment 20 for bug 1111298

Revision history for this message
Tung Tran Thanh (tung121089) wrote :

Hello,

Please try to read the name of the currency from the invoice like this: inv.company_id.name. The problem is still there!

I think the fix does not address the main issue of this bug, which was described very precisely in the comment #7 by Nicolas Bessi. For me, it's not what described in the comment #6 that triggers the error in the cache function. The main issue here is at the way that ORM is handling the caching function.

After applying the fix, I still get an error why trying to call inv.company_id.name.

Take a look at the fix, which was proposed in the comment #8.

I agree with the first two points, which are adding a record rule for res.currency and updating company_id to False for all currencies, to make res.currency being handled consistently with the rest of the system. However, this bug will never gone without taking into account the third point, which is just a workaround for this specific case.

Correct me if I'm wrong!

Regards,