简体   繁体   中英

How to update external_id for partners/companies and Where is default external_id is generating in odoo?

I want to update all the external ids of res.partner in system while creating partners using create() method. Also, I am not getting the functionality where the default external id name(res_partner_id) is generating.

Example :

Default generated external_id : res_partner_[id]

External id to be updated : abcd_res_partner_country_id_[id]

An External ID is an identifier for a data record. The mechanism behind this is quite simple: Odoo keeps a table with the mapping between the named External IDs and their corresponding numeric database IDs. That is the ir.model.data model.

To inspect the existing mappings, go to the Technical section of the Settings menu, and select the Sequences & Identifiers | External Identifiers menu item.

Recommended link: https://www.odoo.com/forum/help-1/question/how-to-update-external-id-50395

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM