Base: currency's compute method fails when context is None
Bug #601901 reported by
Numérigraphe
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
Changed in openobject-server: | |
status: | New → Confirmed |
To post a comment you must log in.
That's actually a problem only when from_currency[ 'rate'] == 0 or to_currency['rate'] == 0