Search 1.9 billion lines of Odoo code on GitHub

base_import_odoo

Author: Therp BV,Hunki Enterprises BV,Odoo Community Association (OCA)
License: AGPL-3
Branch: 13.0-base_import_odoo
Repository: hbrunn/server-tools
Dependencies: base_sparse_field, and mail
Languages: HTML (358, 2.6%), PO File (12140, 87.8%), Python (860, 6.2%), XML (386, 2.8%), and reStructuredText (84, 0.6%)
Other branches: 10.0-auth_session_timeout_test_patching, 10.0-base_import_odoo, 10.0-base_merge, 10.0-base_user_role_company, 10.0-dead_mans_switch_server, 10.0-fix-travis, 10.0-users_ldap_populate-use-filter_format-correctly, 8.0-auth_dynamic_groups-fix_no_groups_login, 8.0-auto_backup-improvements, 8.0-auto_backup-keep_days, 8.0-base_export_manager-dactivate_invalid_lines, 8.0-base_import_odoo, 8.0-base_manifest_extension-fix_module_load, 8.0-base_mixin_restrict_field_access, 8.0-base_retrofit_workflow, 8.0-base_test_chrome, 8.0-travis-green-2019-08-14, 8.0-users_ldap_populate-use-filter_format-correctly, and 8.0-users_ldap_push-expressions
Other repositories: 001101/server-tools, 020cui/server-tools, 0yik/server-tools, 2FM/server-tools, 50611/server-tools, AITIC/server-tools, AMhadhbi/server-tools, Albin-John/server-tools, AlceConsorcio/server-tools, Alex-Woo/server-tools, Alfa-90/server-tools, App247/server-tools, ArkanSystem/server-tools, Artielkami/server-tools, BCDR/server-tools, Banetese/server-tools, Bubbles-IT/server-tools, CB-Gran-Canaria/server-tools, CGenie/server-tools, Cgruppo/server-tools, ChanFeei/server-tools, Chandresh-SerpentCS/server-tools, Change2improve/server-tools, ChinaShrimp/server-tools, CiaranCheng/server-tools, CodeFishEG/server-tools, Colorlessgold/server-tools, ComitorDevTeam/server-tools, ContrerasTorrez/server-tools, CrazyJET/server-tools, CustomOdoo/server-tools, DITIntl/server-tools, Danielzhulin/server-tools, Dgaroc/server-tools, Digital5-Odoo/server-tools, Dike90/server-tools, Dobtor-OCA/server-tools, DucTruongKomit/server-tools, DulingLai/server-tools, EBII/server-tools, ERPLibre/server-tools, EssentNovaTeam/server-tools, FernandoCarlosGarcia/server-tools, FernandoRomera/server-tools, GSLabIt/server-tools, Gabinete-Digital/server-tools, Gebesa-Dev/server-tools, GleydsonHudson/server-tools, GlobalManager/server-tools, Glue-Software-Engineering-AG/server-tools, Gofekra/server-tools, GreyShim/server-tools, GrupoAlvamex/server-tools, GuSWRolland/server-tools, Guobower/OCA-server-tools, HarshalBhoir/server-tools, HomerDeoDatu/server-tools, Hothua/server-tools, Ingeos/server-tools, Intesco2-0/server-tools, IvanShirokikh/server-tools, JaimeAvellaneda/server-tools, Jarsa/server-tools, Jeisonpernia/server-tools, JibenCL/server-tools, Johnvonthegreat/server-tools, JuaniFreedoo/server-tools, JuniorKRnd/server-tools, Kayuulab/server-tools, Kiplangatdan/server-tools, KonaERP/server-tools, Korynkai/server-tools, KottmannM/server-tools, LevelPrime/server-tools, LlywelynLi/server-tools, LourenzoH/server-tools, Mahmoud-Alaa-Eldeen/server-tools, Manuel-Dellisse/server-tools, MariajMesa/server-tools, MasterBlaster479/server-tools, MathBenTech/server-tools, MediaJockey/server-tools, Mefistous/server-tools, Melodivo/server-tools, MindAndGo/server-tools, MjAbuz/server-tools, MrFangD/server-tools, NGTS-AUS/server-tools, NL66278/server-tools, NeatNerdPrime/server-tools, Nowheresly/server-tools, Numigi/server-tools, OCA-MUK/server-tools, OCA/server-tools, ORETEK/server-tools, Odoo-Italia-Associazione/server-tools, OdooIndonesia/server-tools, OpenPymeMx/server-tools, Othniel1796/server-tools, PieterPaulussen/server-tools, PlanetaTIC/server-tools, Ppamungkas/server-tools, PrenorSistemas/server-tools, QubiQ/server-tools, Rad0van/server-tools, RealSolutionsLux/server-tools, Reinhard-sheng/server-tools, SanteLibre/server-tools, ScopeaFrance/server-tools, SequarSrl/server-tools, SilviaLeonSanchez/server-tools, SilvioGregorini/server-tools, SimoRubi/server-tools, SimoneVagile/server-tools, SokreamPhanqrl/server-tools, SportPursuit/server-tools, StefanRijnhart/server-tools, Sunnyshine008/server-tools, Syci-Consulting/server-tools, TDu/server-tools, Tecnativa/server-tools, Thorncrag/server-tools, TimLai125/server-tools, Tonow-c2c/server-tools, TradePilotLLC/server-tools, UakamiStudio/server-tools, UnknownInfo/server-tools, VanMoof/server-tools, Vauxoo/server-tools, VisiionSolucionesTecnologicas/server-tools, Wadios/server-tools, WilldooIT/server-tools, Yaman-als/server-tools, YannickB/server-tools, YogeshMahera-SerpentCS/server-tools, aadarsh977/server-tools, aaltinisik/server-tools, abdulhalim-cu/server-tools, abdulrhmans/server-tools, acsone/server-tools, acsonefho/server-tools, adekock11/server-tools, adriansteel/server-tools, adrienpeiffer/server-tools, agenterp/server-tools, agknz/server-tools, ahmed3bdelhady88/server-tools, aitorbouzas/server-tools, ajaychauhan727/server-tools, ajayjaviya/server-tools, ajinvn2019/server-tools, akhdaniel/server-tools, akhilpsivan01/server-tools, akretion/server-tools, alan80080/server-tools, albertvimlet/server-tools, alecvinent/server-tools, alesisjoan/server-tools, alessavindell/server-tools, alfadil/server-tools, algiopensource/server-tools, altoch/server-tools, amebalibre/server-tools, amendoncabh/server-tools, anasallaham/server-tools, anassahmed/server-tools, andriisem/server-tools, anhvu-sg/server-tools, anodino-dev/server-tools, ansinaesmejor/server-tools, antilhue/server-tools, antonyrajserpentcs/server-tools, apetbiz/server-tools, area-scm/server-tools, aremili/server-tools, aroodooteam/server-tools, artux404/server-tools, aurestic/server-tools, avanzosc/server-tools, avoinsystems/server-tools, aymanshow/server-tools, azmeuk/server-tools, bacgdev/server-tools, bacgroup/server-tools, bala07123/server-tools, bangil0/server-tools, bealdav/server-tools, beenhere4hours/server-tools, bicomm/server-tools, bishalgit/server-tools-1, bjccdsrlcr/server-tools, blooparksystems/server-tools, bodi000/server-tools, boky1993/server-tools, boutitinizar/server-tools, brain-tec/server-tools, brainbeanapps/server-tools, camptocamp/server-tools, captivea-dcr/server-tools, cedvict/server-tools, cheikhousy/server-tools, chenwfal/server-tools, chianggq/server-tools, claro5/server-tools, codewareuae/server-tools, cogitoweb/server-tools, connect-to-ak/server-tools, coopiteasy/server-tools, corsojulian7/server-tools, crnd-inc/server-tools, cuongpk/server-tools, dalal-intellisoft/server-tools, damdam-s/server-tools, danger89/server-tools, dani-xtendoo/server-tools, danimaribeiro/server-tools, daramousk/server-tools, davidwah/server-tools, ddico/server-tools, ddufresne/server-tools, delgerS/server-tools, dennybiasiolli/server-tools, dev-tanvir/server-tools, devang-dreambits/server-tools, diagramsoftware/server-tools, diegobgl/server-tools, diggy128/server-tools, dipakthapaofficial/server-tools, diverfr/server-tools, dmp16/server-tools, dmsergio/server-tools, dndoanh/server-tools, dong-z/server-tools, druidoo-dev/server-tools, dsonnet/server-tools, ebirbe/server-tools, ecosoft-odoo/server-tools, edsersolis/server-tools, elperrofarelo/server-tools, emagdalenaC2i/server-tools, enocare/server-tools, erfanjahanshahlo/server-tools, ermannognan/server-tools, esantos-octagono/server-tools, eversatis/server-tools, ewac-nl/server-tools, exosoftware/oca-server-tools, factorlibre/server-tools, fanha99/server-tools, fashkl/server-tools, ferdiansahgg/server-tools, findsomeoneyys/server-tools, flosslab/server-tools, focusate/oca-server-tools, forkme7/server-tools, foutoucour/server-tools, gab-net/server-tools, gabrielo77/server-tools, gastonfeng/server-tools, gavindav/server-tools, gitguohao/server-tools, goanzaloo/server-tools, grant-thornton/server-tools, grap/server-tools, guandalf/server-tools, guewen/server-tools, gurneyalex/server-tools, gustavovalverde/server-tools, gxbsst/server-tools, gzanelli/server-tools, habbaba/server-tools, haidd/server-tools, haublang/server-tools, hdb1234/server-tools, henrryyanez/server-tools, hhgabelgaard/server-tools, hibou-io/oca-server-tools, hieulucky111/server-tools, hiisoc/server-tools, hinfo506/server-tools, hippe-67/server-tools, hq8399/server-tools, huntergps/server-tools, hvcabaim/server-tools, i-vyshnevska/server-tools, iRichGit/server-tools, ideaspositivas-group/server-tools, igallart/server-tools, igor-mitin/server-tools, initOS/server-tools, insscn/server-tools, intero-chz/server-tools, invitu/server-tools, ip-candres/server-tools, itblabla/server-tools, ixor3/server-tools, izzihector/server-tools, j-zaballa/server-tools, jaballate/server-tools, jackxusho/server-tools, jacky82669513/server-tools, janverb/server-tools, jaosss/server-tools, jcarlosmontoya/server-tools, jeanpaul-mupagasi/server-tools, jeroen7s/server-tools, jimmyec/server-tools, jnegrete/server-tools, joserprieto/server-tools, joshuajan/server-tools, josueBulle/server-tools, josuf567/server-tools, jphatig/server-tools, jriveros/server-tools, julenalgios/server-tools, julianram/server-tools, kait-avalah/server-tools, kamsir/server-tools, katyukha/server-tools, kelldave/server-tools, kevin070982/server-tools, kikopeiro/server-tools, kittiu/server-tools, kmee/server-tools, kos94ok-3D/server-tools, lasley/server-tools, legalsylvain/server-tools, lembregtse/server-tools, leonidasthe300/server-tools, libregob/server-tools, lideritjnma/server-tools, liehu1/server-tools, lilotter45/server-tools, liweijie0812/server-tools, loftwah/server-tools, lonelyleaves/server-tools, luistorresm/server-tools, magedmnb/server-tools, magnuscolors/server-tools, maherjaballi/server-tools, mamcode/server-tools, marcelomora/server-tools, mart-e/server-tools, mehdi-ghezal/server-tools, michotm/server-tools, mikolodz/server-tools, mileo/server-tools, minorisa/server-tools, mivilsoft/server-tools, modoolar/server-tools, mohamedhagag/server-tools, mozaik-association/server-tools, msdeek/server-tools, mulaudzicalvin/server-tools, myonnet/oca-server-tools, nabiforks/server-tools, nabima/server-tools, nadiaafa/server-tools, nebras-solutions/server-tools, nehaksolves/server-tools, netoodoo/server-tools, nicolasjelincic/server-tools, nilshamerlinck/server-tools, niulinlnc/server-tools, nodoo/server-tools, ntsirintanis/server-tools, odoo247/server-tools, odooerpdevelopers/server-tools, odoogap/server-tools, odoosoft/server-tools, odoospace/server-tools, omalbastin/server-tools, one2pret/server-tools, onurugur/server-tools, open-net-sarl/server-tools, open-synergy/server-tools, open2bizz/server-tools, osiell/server-tools, osipaas/server-tools, p-tombez/server-tools, percypalomino/server-tools, phillipstack/server-tools, piensom/server-tools, popcomputadores-desenv/server-tools, praxigento/oca-server-tools, presenceverte/server-tools, programadorzurita/server-tools, pscloud/server-tools, pythoner-3k/server-tools, qtheuret/server-tools, quentinDupont/server-tools, raizs/server-tools, ravishekharco/server-tools, raycollazo/server-tools, rdeheele/server-tools, redcor/server-tools, revstech/server-tools, rezaakba123/server-tools, richar-osse/server-tools, rifki/server-tools, rm-jamotion/server-tools, robertsvx27/server-tools, romendil/server-tools, ronozoro/server-tools, royalline1/server-tools, rrcfesc/server-tools, rrgaona/server-tools, rsullivan2704/server-tools, rudisulistyo/server-tools, ruifranco/server-tools, rven/server-tools, rwfnf/server-tools, sadeqamin/server-tools, sailguest/server-tools, sanube/server-tools, schout-it/server-tools, sebalix/server-tools, selim-b/server-tools, sergiocorato/server-tools, shepilov-vladislav/server-tools, simone/server-tools, skmezanul/server-tools, skukered/server-tools, smile-888/server-tools, solvosci/server-tools, ssaid/server-tools, steingabelgaard/server-tools, sunflowerit/server-tools, sunshineLhj/server-tools, suprielfath/server-tools, swbs-co/server-tools, sylvainvh/server-tools, sysprocesarcastro/server-tools, t-np/server-tools, takinobori/oca-server-tools, tansadio/server-tools, tarteo/server-tools, tegin/server-tools, tirma-sa/server-tools, tmasson/server-tools, tongjiou/server-tools, traviswaelbro/server-tools, trevi-software/server-tools, tschanzt/server-tools, tsengeagle/server-tools, tuanna7593/server-tools, unitek-solusi/OCA-server-tools, valentinthirion/server-tools, valmarnet/server-tools, vdedyukhin/server-tools, ventor-tech/server-tools, victoralmau/server-tools, vmelnych/server-tools, westlyou/server-tools, willmakenoise/server-tools, wowerliu/server-tools, wuhuizhong/server-tools, www3838438/server-tools, xAlphaOmega/server-tools, xcgd/server-tools, xhair/server-tools, xichun/server-tools, xtjie/server-tools, xuanmu/server-tools, xwh123807/server-tools, xwh1238070/server-tools, yalabsio/server-tools, ycp1015/server-tools, ygdmxy/server-tools, yogesh-serpentcs/server-tools, ypapouin/server-tools, yusniermatos/server-tools, yuzhengxing/server-tools, zamberjo/server-tools, zarumaru/server-tools, zhaohengzeng/server-tools, zhaohuaw/server-tools, and zhujin001032/server-tools

<h1 class="title">Import from Odoo</h1> <p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/server-tools/tree/13.0/base_import_odoo"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/server-tools-13-0/server-tools-13-0-base_import_odoo"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/149/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>This module was written to import data from another Odoo database. The idea is that you define which models to import from the other database, and add eventual mappings for records you don't want to import.</p> <a name="use-cases"></a> <h2>Use cases</h2> <ul class="simple"> <li>merging databases</li> <li>one way sync</li> <li>aggregating management data from distributed systems</li> </ul> <p><strong>Table of contents</strong></p> <a name="configuration"></a> <h2>Configuration</h2> <p>Go to Settings / Remote Odoo import / Import configurations and create a configuration.</p> <p>After filling in your credentials, select models you want to import from the remote database. If you only want to import a subset of the records, add an appropriate domain.</p> <p>The import will copy records of all models listed, and handle links to records of models which are not imported depending on the existing field mappings. Field mappings to local records also are a stopping condition. Without those, the import will have to create some record for all required x2x fields, which you probably don't want.</p> <p>Probably you'll want to map records of model <code>res.company</code>, and at least the admin user.</p> <p>The module doesn't import one2many fields, if you want to have those, add the model the field in question points to to the list of imported models, possibly with a domain.</p> <p>If you don't fill in a remote ID, the addon will use the configured local ID for every record of the model (this way, you can for example map all users in the remote system to some import user in the current system).</p> <p>For fields that have a uniqueness constraint (like <code>res.users#login</code>), create a field mapping if type <code>unique</code>, then the import will generate a unique value for this field.</p> <p>For models using references with two fields (like <code>ir.attachment</code>), create a field mapping of type <code>by reference</code> and select the two fields involved. The import will transform known ids (=ids of models you import) to the respective local id, and clean out the model/id fields for unknown models/ids.</p> <p>You can add custom defaults per model in case your database has different required fields than the source database. For <code>res.partner</code>, you'll most certainly fill in <code>{'name': '/'}</code> or somethign similar.</p> <a name="usage"></a> <h2>Usage</h2> <p>To use this module, you need to:</p> <ol class="arabic simple"> <li>go to an import configuration and hit the button <code>Run import</code></li> <li>be patient, this creates a cronjob which will start up to a minutes afterwards</li> <li>reload the form, as soon as the cronjob runs you'll see a field <code>Progress</code> that lets you inspect what was imported already</li> <li>note that the cronjob also resets the password as soon as it has read it. So for a subsequent import, you'll have to fill it in again</li> <li>running an import a second time won't duplicate data, it should recognize records imported earlier and just update them</li> </ol> <a name="known-issues-roadmap"></a> <h2>Known issues / Roadmap</h2> <ul class="simple"> <li>Yes of course this duplicates a lot of connector functionality. Rewrite this with the connector framework, probably collaborate with <a class="reference external" href="https://github.com/OCA/connector-odoo2odoo">https://github.com/OCA/connector-odoo2odoo</a></li> <li>Support reference fields, while being at it refactor _run_import_map_values to call a function per field type</li> <li>Add duplicate handling strategy 'Overwrite older'</li> </ul> <a name="bug-tracker"></a> <h2>Bug Tracker</h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-tools/issues">GitHub Issues</a>. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed <a class="reference external" href="https://github.com/OCA/server-tools/issues/new?body=module:%20base_import_odoo%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <p>Do not contact contributors directly about support or help with technical issues.</p> <a name="credits"></a> <h2>Credits</h2> <a name="authors"></a> <h3>Authors</h3> <ul class="simple"> <li>Therp BV</li> <li>Hunki Enterprises BV</li> </ul> <a name="contributors"></a> <h3>Contributors</h3> <ul class="simple"> <li>Holger Brunn &lt;<a class="reference external" href="mailto:mail&#64;hunki-enterprises.com">mail&#64;hunki-enterprises.com</a>&gt;</li> </ul> <a name="maintainers"></a> <h3>Maintainers</h3> <p>This module is maintained by the OCA.</p> <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <p>OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.</p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-tools/tree/13.0/base_import_odoo">OCA/server-tools</a> project on GitHub.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>