İçereği Atla
Menü
Bu soru işaretlendi

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
Vazgeç
Üretici

Hello Cybrosys,

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

En İyi Yanıt

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
Vazgeç
En İyi Yanıt

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
Vazgeç
Üretici

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.

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Şub 23
2514
1
May 25
913
0
May 23
2521
0
Haz 25
5164
0
May 21
2757