Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9179859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:54:21+00:00 2026-06-17T17:54:21+00:00

My Question is a bit complex and iam new to OpenERP . I have

  • 0

My Question is a bit complex and iam new to OpenERP.

I have an external database and an OpenERP. the external one isn’t PostgreSQL.
MY job is that I need to synchronize the partners in the two databases.
External one being the more important. This means that if the external one’s data change so does the OpenERp’s, but if OpenERP’s data changes nothing changes onthe external one.

  • I can access to the external database, and using XML RCP I have acces
    to OpenERP’s as well.

  • I can import data from the external database simply with XML RCP but
    the problem is the sync.

  • I can’t just INSERT the modified partner and delete the old one
    because i have no way to identify the old one.

  • I need to UPDATE it. But then i need an id that says which is which.
    and external ID.

  • To my knowledge OpenERP can handle external IDs.

How does this work? and how can i add an external ID to my res.partner using this?

I was told that I cant create a new module for this alone I need to use the internal ID works.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T17:54:22+00:00Added an answer on June 17, 2026 at 5:54 pm

    Short answer: have a look at the way the CSV Import and Export wizard work – exporting a record automatically creates an external identifier so you can re-import that same CSV and the record will be updated rather than re-created.

    Long answer:
    OpenERP stores external IDs in the ir.model.data table, which you can access in the user interface via the Settings menu 1. This simple table maps an “External Identifier” in the form module_name.record_identifier to a pair (model,res_id) that points to the actual table and row.

    These external IDs are used to find the database-local row that corresponds to a record created by some external source: a module (hence the module-based namespace) or an imported CSV file, usually.

    For example the external identifier base.EUR maps to the database records that holds the EUR currency in the database, and is owned by the base module.

    As of version 6.1, OpenERP automatically creates new external identifiers for all OpenERP records that are exported using the sidebar Export wizard: they’re exported in a CSV column named id.

    And if such an id column is present in a CSV file that is imported via the Import wizard, OpenERP will also create an external identifier to remember it. And when the external identifier already exists, the record is updated rather than created.

    In theory, all you have to do is produce a proper CSV file with an extra id column2 from your master database (you could even use the actual DB ID), and import it in OpenERP. You should then be able to re-import updated versions of this CSV file whenever you want.

    References:

    • The Import and Export wizards basically call the API methods export_data and import_data, so you can script this via XML-RPC if needed.
    • The ir.model.data model stores the external identifiers (historically called XML IDs because it corresponds to the id field of XML records in module data files).

    1 In OpenERP 6.1 it is located under Settings>Configuration>Sequences & Identifiers>External Identifiers, and in OpenERP version 7 under Settings>Technical>Sequences & Identifiers>External Identifiers.

    2 can be any string with no dot “.” character in it: it will be stored in a special __export__ module namespace)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Bit support question. Apologies for that. I have an application linked with GNU readline.
I have a question for which I suspect the answer is a bit complex.
My question is a bit complex, I have a managed bean, possibly A session
Sorry if this question seems a bit complex but I think its all related
Sorry if this question is a bit open ended, but I'm pretty new to
This is sort of a complex question so it will take a bit to
This is a bit complex so I hope I word this right. I have
what i have here works exactly how i want it. My question is that
This question is simple, but the set-up's a bit complex. Please bear with me...
I have a complex xml schema that is part of an international standard, therefore

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.