跳至内容
菜单
此问题已终结
1 回复
1933 查看

I have lots of Product Variants already in the database and I want to update their 'External ID' to their barcode. Therefor I have a few questions:

1. Is it a good idea to use the barcode as the 'External ID'?

2. How can I add the 'Database ID' to an import-compatible export?

  • Is it 'ID (.id)'? If not, then which one is it?
  • Why can't I add 'ID (.id)' to an import-compatible export? I can only add it if I uncheck 'import-compatible export'.

3. When I make a Product Variants import-compatible export with:

  • 'ID (.id)' as 'Database ID'(?)
  • 'ID (id)' as 'External ID'
  • 'Barcode (barcode)'

and I try to re-import (update) it with:

  • 'ID (.id)' as 'Database ID'
  • 'ID (id)' as 'External ID' filled with the respective barcodes

then I can't find a matching Odoo Field 'Database ID'. How to select this?


形象
丢弃
最佳答案

You cannot update the External ID.

You can set it when you create a record, or Odoo will assign one when you first export it.

The database ID is a number.  It is assigned by Odoo and (as you'd expect) you can't update it either, so it makes sense that it is not included in an import-compatible export.

The normal use of External ID is for the record id from another system.  If your barcodes never change maybe you could use that, but there's already a barcode field in the database.

形象
丢弃
相关帖文 回复 查看 活动
1
11月 24
1357
4
11月 18
8028
0
3月 15
4024
1
3月 15
4174
1
1月 24
1628