Skip to Content
Odoo Menu
  • Zaloguj się
  • Wypróbuj za darmo
  • Aplikacje
    Finanse
    • Księgowość
    • Fakturowanie
    • Wydatki
    • Arkusz kalkulacyjny (BI)
    • Dokumenty
    • Podpisy
    Sprzedaż
    • CRM
    • Sprzedaż
    • PoS Sklep
    • PoS Restauracja
    • Subskrypcje
    • Wypożyczalnia
    Strony Internetowe
    • Kreator Stron Internetowych
    • eCommerce
    • Blog
    • Forum
    • Czat na Żywo
    • eLearning
    Łańcuch dostaw
    • Magazyn
    • Produkcja
    • PLM
    • Zakupy
    • Konserwacja
    • Jakość
    Zasoby Ludzkie
    • Pracownicy
    • Rekrutacja
    • Urlopy
    • Ocena pracy
    • Polecenia Pracownicze
    • Flota
    Marketing
    • Marketing Społecznościowy
    • E-mail Marketing
    • SMS Marketing
    • Wydarzenia
    • Automatyzacja Marketingu
    • Ankiety
    Usługi
    • Projekt
    • Ewidencja czasu pracy
    • Usługi Terenowe
    • Helpdesk
    • Planowanie
    • Spotkania
    Produktywność
    • Dyskusje
    • Zatwierdzenia
    • IoT
    • VoIP
    • Baza wiedzy
    • WhatsApp
    Aplikacje trzecich stron Studio Odoo Odoo Cloud Platform
  • Branże
    Sprzedaż detaliczna
    • Księgarnia
    • Sklep odzieżowy
    • Sklep meblowy
    • Sklep spożywczy
    • Sklep z narzędziami
    • Sklep z zabawkami
    Żywienie i hotelarstwo
    • Bar i Pub
    • Restauracja
    • Fast Food
    • Pensjonat
    • Dystrybutor napojów
    • Hotel
    Agencja nieruchomości
    • Agencja nieruchomości
    • Biuro architektoniczne
    • Budowa
    • Zarządzanie nieruchomościami
    • Ogrodnictwo
    • Stowarzyszenie właścicieli nieruchomości
    Doradztwo
    • Biuro księgowe
    • Partner Odoo
    • Agencja marketingowa
    • Kancelaria prawna
    • Agencja rekrutacyjna
    • Audyt i certyfikacja
    Produkcja
    • Tekstylia
    • Metal
    • Meble
    • Jedzenie
    • Browar
    • Prezenty firmowe
    Zdrowie & Fitness
    • Klub sportowy
    • Salon optyczny
    • Centrum fitness
    • Praktycy Wellness
    • Apteka
    • Salon fryzjerski
    Transakcje
    • Złota rączka
    • Wsparcie Sprzętu IT
    • Systemy energii słonecznej
    • Szewc
    • Firma sprzątająca
    • Usługi HVAC
    Inne
    • Organizacja non-profit
    • Agencja Środowiskowa
    • Wynajem billboardów
    • Fotografia
    • Leasing rowerów
    • Sprzedawca oprogramowania
    Przeglądaj wszystkie branże
  • Community
    Ucz się
    • Samouczki
    • Dokumentacja
    • Certyfikacje
    • Szkolenie
    • Blog
    • Podcast
    Pomóż w nauce innym
    • Program Edukacyjny
    • Scale Up! Gra biznesowa
    • Odwiedź Odoo
    Skorzystaj z oprogramowania
    • Pobierz
    • Porównaj edycje
    • Wydania
    Współpracuj
    • Github
    • Forum
    • Wydarzenia
    • Tłumaczenia
    • Zostań partnerem
    • Usługi dla partnerów
    • Zarejestruj swoją firmę rachunkową
    Skorzystaj z usług
    • Znajdź partnera
    • Znajdź księgowego
    • Spotkaj się z doradcą
    • Usługi wdrożenia
    • Opinie klientów
    • Wsparcie
    • Aktualizacje
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Zaplanuj demo
  • Cennik
  • Pomoc

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Księgowość
  • Zapasy
  • PoS
  • Projekt
  • MRP
All apps
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Pomoc

How to import activities for contact’s chatter?

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
quickstartQuickstart
1 Odpowiedz
3198 Widoki
Awatar
Arturo David Galán Galván (adgg)

I want to migrate my contacts along with their activities (In the chatter) to a new data base, from 17.4 to 18.

Is there any way to import activities so that they appear again in the Chatter?

1
Awatar
Odrzuć
Awatar
Arturo David Galán Galván (adgg)
Autor Najlepsza odpowiedź
  1. First you have to import the contacts without the activities to the new database
  2. Afterwards you need to find the specific model ids and relevant fields to create a spreadsheets template.


STEPS

  1. Import only contacts: Export and import contacts to the new database with all their information, except for the activities.

  2. Find the activities: First, to find the activities, you can click on the clock icon and ‘view all activities’


3. Find the activity technical names: Another way to find the activities is to activate developer mode and go to > Settings > Technical > Activity Overview; this will show all the activities that have not been marked as ‘Done’. Click on any of them to see the ​fields that they have: 


4. Important fields: The fields that need to be imported  are the following:

  • The external id for the model (res.partner): res_model_id/id (step 6) 
  • The internal id for each contact: res_id (step 7)
  • The external id for each activity type: activity_type_id/id (step 5)
  • The summary of the activity: summary
  • The due date for each activity: date_deadline
  • The assigned user to each activity: user_id/id (id of the user assigned)

The actual template is attached to this post.


5. Obtain the ‘activity_type_id/id’: The import won’t work using only the activity type, it needs to be the id. Go to Settings > Technical > Activity types and export the             name and external id of all the activity types in your database:

Note: depending on which activity is assigned to which id, it will also have to be related in the final spreadsheet so that all the activities are correct. If new activity types were created in the old database you will have to first import them as well.


6. Obtaining the Correct model for contacts: We need the external model id for contacts (res.partner) because that is where we want to import the activities (since all          ​activities are stored in Activity Overview its something you need to specify to the system so that it creates the correct relation between them), go to Settings >                 Technical > Database Structure > Models > select them all and export them :

There you will find the external id for the contacts, it is contacts.model_res_partner. It is important to reiterate that this is the external id that must be used.


7. Relation between the activities id and each contact: Finally, you need to get the contact id to be able to relate each activity to each specific contact, the field for it is        res_id. This field corresponds to the internal id of the contact and not the external one. You need to use the internal id so that Odoo knows how to relate everything          together. To obtain it you have to export it from the contacts that were already imported in the new database. ‘I want to update data (import-compatible export)’ must      be unchecked and the field name to export is ID (.id):

How they would look like:

8. Relate all data with the correct contact: Now, after getting all the necessary fields to import, you have to relate them to each other inside the spreadsheet, the contact  id with the specific activity type of that contact alongside its summary, deadline and the user responsible. Here is an example of only the necessary fields to use:

You create your own external id for id, the external model id will be the same one since the activities are all related to contacts, for the contact internal id you have to make sure that the correct activity types id’s, summary and date correspond to the right contact. For the user id you can use base.user_admin to assign the administrator user to all of the activities, however, to find the id for each user go to Settings > Manage Users > Select all of them (or only the ones you need) > Actions > Export and make sure to add the external id field:

With this you can choose which user will be assigned to each activity. 


9. Import data in activities: this should be enough for the import to work correctly, however, to be able to import activities in the first place go to Settings > Technical >        Activity Overview > debug > View: list > update the code at the end of line 1 with the following:

With this you should finally be able to import activities.

Go to > Settings > Technical > Activity Overview, the option to import will appear when clicking on the gear:

 

Upload the .csv file and make sure that these are the fields:

Click on the test button and if it says that everything is OK then you can click on import and now you have imported activities to your new database.


Note: There's a .csv file with the temple example attached to this forum post.


SUMARRY

In summary, after importing only the contacts, you need to obtain the id of the model that the activities will be related to, in this case it was contacts, get the internal id of the imported contacts to link the activity to each contact and obtain the ids of the specific activity and of the assigned  user. 

So if you want to import activities for other models (sales order, projects, etc.) you only need to get the specific model id and the id of the data where the activities need to be used (in this case: contacts).

Template

2
Awatar
Odrzuć
Podoba Ci się ta dyskusja? Dołącz do niej!

Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!

Zarejestruj się
Powiązane posty Odpowiedzi Widoki Czynność
How do I connect the Epson TM-T88VII to Odoo?
quickstart Quickstart
Awatar
Awatar
2
paź 25
825
How to Set Customer-Specific Product Names Rozwiązane
quickstart Quickstart
Awatar
1
sie 25
1310
✅ Odoo E-commerce: How to discriminate deliveries based on the type of clients
quickstart Quickstart
Awatar
0
sie 25
1362
How can Import an existing Spreadsheets with formulas with out doing it manually? Rozwiązane
quickstart Quickstart
Awatar
2
sie 25
1772
Does Odoo manage WebP ? Rozwiązane
quickstart Quickstart
Awatar
Awatar
Awatar
3
lip 25
4376
Społeczność
  • Samouczki
  • Dokumentacja
  • Forum
Open Source
  • Pobierz
  • Github
  • Runbot
  • Tłumaczenia
Usługi
  • Hosting Odoo.sh
  • Wsparcie
  • Aktualizacja
  • Indywidualne rozwiązania
  • Edukacja
  • Znajdź księgowego
  • Znajdź partnera
  • Zostań partnerem
O nas
  • Nasza firma
  • Zasoby marki
  • Skontaktuj się z nami
  • Oferty pracy
  • Wydarzenia
  • Podcast
  • Blog
  • Klienci
  • Informacje prawne • Prywatność
  • Bezpieczeństwo Odoo
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo to pakiet aplikacji biznesowych typu open source, które zaspokoją wszystkie potrzeby Twojej firmy: CRM, eCommerce, księgowość, inwentaryzacja, punkt sprzedaży, zarządzanie projektami itp.

Unikalną wartością Odoo jest to, że jest jednocześnie bardzo łatwe w użyciu i w pełni zintegrowane.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now