Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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!

Awatar
Odrzuć
Autor

Hello Cybrosys,

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

Najlepsza odpowiedź

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}

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor

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.

Powiązane posty Odpowiedzi Widoki Czynność
1
lut 23
2514
1
maj 25
913
0
maj 23
2521
0
cze 25
5164
0
maj 21
2757