İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
1618 Görünümler

Hi,


I have created a custom model via the web interface to be used with the CRM Leads. This model is very simple and only contains 2 custom fields (code and description).


When importing leads using the import from file functionality, I want to be able to provide one or more "code" values separated by commas to be attached to the imported lead.


When manually creating/modifying leads, I can correctly link the custom model items to the lead. When using the import from file functionality, I can only link the records in the custom model to the lead by using the External IDs or Database IDs in the CSV, and making sure the "matching with subfields" is checked on the import page.


Lets say we have 2 records in the custom model:

Code

DescriptionDatabase ID

557799

Some description here1023
993355Some other description1024


How can I ensure that I can import the leads with a column in the CSV named "code" and with the value of "557799,993355" and have it correctly map to the custom model items? Right now, it only works when using "1023,1024" as value and then configuring the import to map it to the custom model database ID field.


Thanks in advance!

Avatar
Vazgeç
En İyi Yanıt

Hi  Rob Reus,

I think this video can help you: https://www.youtube.com/watch?v=etMYrOJyaiU&list=PLSKcWRTtEl5qzvRaI-VTGavfReiHS_EEb&index=2 (starting at 16:00 in this video)


Avatar
Vazgeç
Üretici En İyi Yanıt

That video is about an app that costs 1200 euros, that is not really an option for me. I know how to code python, so I am also okay with making a custom solution for this. I just need some pointers on where to start as the docs are lacking in this area and I am not yet familiar with the odoo codebase.

Avatar
Vazgeç

Hi Rob Reus,

I think you should contact the module author to ask. In the module description I see a contact email.

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Kas 24
1582
4
Kas 18
8196
1
Mar 15
4312
0
Mar 15
4208
1
Şub 24
2175