diff options
| author | Denis Ledoux <dle@odoo.com> | 2016-02-10 14:32:16 +0100 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2016-02-10 15:53:21 +0100 |
| commit | 47bb1bd2257c7af5ae68b9bb23455dd1bd21644c (patch) | |
| tree | 0463de6bc3702ccf8312b66efbbab3a922c2ab06 /addons/mail/static/src/xml/thread.xml | |
| parent | fbf6f2cd9b696ca2fbad9882d6015fa15f223658 (diff) | |
[FIX] account, purchase, sale, currency: companies rates
In Odoo 9.0, the field `company_id` has been moved
from the `res.currency` model to the `res.currency.rate`
model.
The different reports applying the currency rates on the amount
at date have not been updated according to this change. This
includes the sales, purchases and invoices analysis report.
Basically, before 9.0, there was one `res.currency`
per existing currency per company. A simple `JOIN`
on the `res_currency` table was therefore enough
to apply the currency rate.
From 9.0, the currency records are shared between
companies. It's the rates (`res.currency.rate`) that can be
set a on specific company. The simple `JOIN` on
`res_currency` is therefore no longer enough: the company condition
must be added. Only rates from the specific company
(e.g the company of the invoice) must be considered, or rates
without companies.
We take the opportunity to factor out the method, so, if a correction
must be done, it must be done in one place only.
opw-669129
Diffstat (limited to 'addons/mail/static/src/xml/thread.xml')
0 files changed, 0 insertions, 0 deletions
