Skip to Content
Menu
This question has been flagged

Hello everyone,


I'm trying to import fixed assets into Odoo 18 and would like to assign each asset to a specific analytic account during the import. However, I'm unsure which field should be used in the import file. To correctly map the analytic account to each asset. I tried to map it with Analytic Distribution but I am getting this error: does not seem to be a valid JSON for field 'Analytic Distribution'


Does anyone know:

  • Which field name should be used to map the analytic account in the import template?
  • Is it possible to assign analytic tags as well during asset import?

Thanks in advance!

Avatar
Discard
Author

Hello Cybrosys,

It works fine thank you. we should use ID instead of External ID

Best Answer

I created an asset called Exchange-Traded Funds. It has two analytic accounts:


1. Dividend Income (External ID = 3)

2. Expense Ratio Impact (External ID = 4)


You can import the Analytic Distribution in the following format for this asset: {"3": 90.0, "4": 0}

Avatar
Discard
Best Answer

Hi,

While importing the assets, instead of 'Analytic Account' choose 'Analytic Distribution' as shown in the photo attached below. And {"16,17":20.0} refers to the external id and the percentage respectively of the analytic account which you are adding to the analytic distribution.

Here I am adding two analytic accounts(external id 16 & 17 ) each of 20 % distribution into the field Analytic Distribution.


Hope it helps

Avatar
Discard
Author

Hello,

I tried the same step it shows everything is valid but when I imported it the Analytic Distribution remains blank.

my external id is not whole number as your but its like this one for example: __export__.account_analytic_account_229_7c94c4b2. so i inserted this value for the Analytic Distribution: {"__export__.account_analytic_account_229_7c94c4b2":100.0}

and also I have several analytic plans.

Related Posts Replies Views Activity
1
Feb 23
2487
1
May 25
871
0
May 23
2501
0
Jun 25
5133
0
May 21
2723