Base: currency's compute method fails when context is None

Bug #601901 reported by Numérigraphe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Status tracked in Trunk
5.0
Fix Released
Medium
Unassigned
Trunk
Fix Released
Undecided
Unassigned

Bug Description

In 5.0.10, when you call the compute() method from res.currency with context=None (like the XML tests do), it fails because the context is not initialized correctly.
Lionel.

Related branches

Revision history for this message
Numérigraphe (numerigraphe) wrote :

That's actually a problem only when from_currency['rate'] == 0 or to_currency['rate'] == 0

Revision history for this message
Numérigraphe (numerigraphe) wrote :

Trivial fix committed to our branch at <email address hidden> .
Lionel

Changed in openobject-server:
status: New → Confirmed
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

It has been fixed by revision 2112 <email address hidden> authored to Lionel.
Thanks.

Changed in openobject-server:
status: Confirmed → Fix Released
milestone: none → 5.0.15
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.