Skip to Content
Menu
This question has been flagged
3 Replies
1562 Views

Hi Odoo accounting experts.

I'm in the process of a migration for a client who has a lot of foreign currency invoices to import into Odoo that are part of open receivables. Their native currency is in GBP but they invoice in EUR, USD etc.

They have both the exchange rate and the current native values available but we are considering using Odoo to revalue them during import.

The issue found during import is that Odoo seems to ignore the fact that currency is specified on the invoice and sets the journals to use identical values for native + foreign currency WITHOUT converting.

I've tested this in V16 and V17, both behave the same.

For example, my import template has the following fields:

  • Partner / External ID
  • Journal
  • Reference
  • Invoice Date
  • Due Date
  • Currency
  • Invoice Lines / Unit Price
  • Invoice Lines / Label
  • Invoice Lines / Expected Date
  • Invoice Lines / Account
  • Invoice Lines / Taxes
  • Invoice Lines / Credit (Optional)
  • Invoice Lines / Debit (Optional)

The 2 fields at the bottom, if provided will allow me to FIX the rate of conversion by specifying the native resulting rate in GBP. But if I do not provide them, Odoo sets them to match the "Invoice Lines / Unit Price", which is wrong as it's in the foreign currency.

Doing this manually on the frontend works but it surprises me this doesn't happen during import. Anyone encountered this?

Thanks in advance.


Avatar
Discard
Best Answer

UPDATED:

What you are not noticing when you do this via the frontend is that Odoo is automatically populating the Amount in Currency field on the Invoice Line, using the same data you enter in the Unit Price field, but with a negative sign in front of it.

Example:

  • Unit Price of £ 200.00
  • Amount Currency of £ -200.00

If you do this in your import (provide a value for both the Unit Price price_unit and Amount Currency amount_currency) you will get the desired outcome.



Avatar
Discard
Author

Thanks Ray, have tested this and still the same result.
Example below (bear in mind native currency is GBP for the system).

Currency: USD
Invoice Lines / Unit Price: 624.00
Invoice Lines / Amount in Currency: -624.00

Author

Resulting journal entries are:
Amount in Currency: $-624.00
Credit: £ 624.00

What is the exchange rate in the system for the date of your Invoice (or the closest date prior to the date of your Invoice?)

Author

Currency rate for USD is 1.24953 (Unit per GBP) and date 09/05/2024 (on V17 community)
Also tested on V16 with rates from 08/05/2024.

I have no further insight, I don't have the UK localization installed, I edited my answer to show the data and mapping.

Author Best Answer

Thanks, it was currency rates! I verified after adding one again for a date prior to the imported invoices dates and it works. Note these are invoices dated prior to the date the Odoo DB was created as it's a staging environment.

Avatar
Discard
Best Answer


Hi I tested the same in V16 EE, Please check this video

Avatar
Discard
Author

Thanks for this. Strange, i've done that same test with fields you have used on both V16 and V17.
Maybe a bug introduced recently?

Hi Chris Mann, I tested the same in our live instance (Latest version) its working fine.
Did you made any customization?

Author

I do have some customisation on the V16 DB but the V17 is a a stock system without customisation and still gives same behaviour. I wonder if it's specific to GBP (UK) based localisation?

Please check your currency master and the conversion amount

Related Posts Replies Views Activity
1
Mar 25
497
2
Mar 25
1527
1
Feb 25
617
1
Feb 25
559
2
Nov 24
808