콘텐츠로 건너뛰기
Odoo 메뉴
  • 로그인
  • 무료 체험하기
  • 앱
    재무 관리
    • 회계
    • 청구서 관리
    • 비용 관리
    • 스프레드시트 (BI)
    • 문서
    • 전자 서명
    판매
    • CRM
    • 판매
    • POS 스토어
    • POS 레스토랑
    • 구독
    • 렌탈
    웹사이트
    • 웹사이트 빌더
    • 이커머스
    • 블로그
    • 포럼
    • 실시간 채팅
    • 온라인 학습 관리
    공급망
    • 재고 관리
    • 제조 관리
    • 제품 수명주기 관리 (PLM)
    • 매입
    • 유지관리
    • 품질
    인적자원 관리
    • 직원
    • 채용
    • 휴가 관리
    • 인사 평가
    • 인재 추천
    • 차량 관리
    마케팅
    • 소셜 마케팅
    • 이메일 마케팅
    • SMS 마케팅
    • 행사
    • 마케팅 자동화
    • 설문 조사
    서비스
    • 프로젝트
    • 작업 기록
    • 현장 서비스
    • 헬프데스크
    • 일정 관리
    • 일정 예약
    생산성
    • 메일 및 채팅
    • 전자 결재
    • IoT
    • VoIP
    • 지식 센터
    • WhatsApp
    타사 앱 Odoo 스튜디오 Odoo 클라우드 플랫폼
  • 인더스트리
    리테일
    • 서점
    • 의류 매장
    • 가구점
    • 식료품점
    • 철물점
    • 장난감 가게
    식음료 & 숙박업
    • 바 & 펍
    • 레스토랑
    • 패스트푸드
    • 게스트 하우스
    • 음료 유통업체
    • 호텔
    부동산
    • 부동산 중개업체
    • 건축 회사
    • 건설
    • 부동산 관리
    • 가드닝
    • 부동산 소유자 협회
    컨설팅
    • 회계 법인
    • Odoo 파트너
    • 마케팅 대행사
    • 법률 사무소
    • 인재 영입
    • 감사 및 인증
    제조 관리
    • 텍스타일
    • 메탈
    • 가구
    • 푸드
    • 양조장
    • 기업용 선물
    건강 & 피트니스
    • 스포츠 클럽
    • 안경점
    • 피트니스 센터
    • 웰니스 전문가
    • 약국
    • 미용실
    사업
    • 핸디맨
    • IT 하드웨어 및 지원 서비스
    • 태양 에너지 시스템
    • 제화업체
    • 클리닝 서비스
    • HVAC 서비스
    기타
    • 비영리 단체
    • 환경 에이전시
    • 광고판 임대
    • 사진
    • 자전거 임대
    • 소프트웨어 리셀러
    전체 인더스트리 찾아보기
  • 커뮤니티
    학습
    • 튜토리얼
    • 문서
    • 인증
    • 훈련
    • 블로그
    • 팟캐스트
    교육 역량 강화
    • 교육 프로그램
    • Scale-Up! 경영관리 게임
    • Odoo에 방문해보세요
    소프트웨어 신청
    • 다운로드
    • 버전 살펴보기
    • 릴리즈 내역
    협업
    • Github
    • 포럼
    • 행사
    • 번역
    • 파트너 등록
    • 파트너 대상 서비스
    • 회계 법인 정보 등록
    서비스 신청
    • 파트너 검색
    • 회계사 검색
    • 전문 상담 예약
    • 구현 서비스
    • 고객 정보
    • 고객 지원
    • 업그레이드
    Github 유튜브 트위터 링크드인 인스타그램 페이스북 스포티파이
    +1 (650) 691-3277
    데모 예약하기
  • 요금제
  • 고객 지원

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

  • CRM
  • e-Commerce
  • 회계
  • 재고 관리
  • PoS
  • 프로젝트
  • MRP
All apps
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
모든 게시물 사용자 배지
태그 (모두 보기)
odoo accounting v14 pos v15
게시판 정보
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
모든 게시물 사용자 배지
태그 (모두 보기)
odoo accounting v14 pos v15
게시판 정보
도움말

Unique external and internal product values in Odoo 10

구독

이 게시물에 활동이 있으면 알림 받기

신고된 질문입니다
11 답글
8135 화면
아바타
J C

Hi Odoo community, I have quite a specific question regarding the unique values Odoo assigns to products created (for example __export__.product_template_ and internal IDs)

We always start with our main Excel file where we keep all our data updated. From there we import products, their characteristics, prices, and later quantities in Odoo. When importing, Odoo assigns a unique ID to every single product. That means if we import 1000 articles Odoo will generate 1000 unique IDs. 

What I wonder is how these IDs are used through Odoo and the sale process. We mostly use POS for sales so what if an item from within our 1000 products list is sold and processed through the invoice system (for example Products => POS => Payment => Invoice), how will the unique ID influence all this?

The reason I ask because we are at the beginning of setting up our system so this 1000 product list will change to regularly add more articles from Excel. So our next import might be 1500 but then it's possible the unique ID from the item that was sold through the POS before will be overwritten with another item taking over that unique ID (because items were not added at the bottom of our product list but they were sorted alphabetically so lines are added in between).

Conclusion, should we be careful with the internal IDs created in Odoo or can they just be overwritten with other products regardless if they are already sold or not?? What's the influence further down the line?...

Hopefully I could explain myself properly, if not please ask me for more info...


Thanks in advance

0
아바타
취소
아바타
La Jayuhni Yarsyah
베스트 답변

You say that "Odoo assigns a unique ID to every single product",, its definitely wrong
Beacause when importing data,, odoo will not creating external id ,, but it's created right before you exporting the record.

https://www.odoo.com/forum/help-1/question/what-is-an-external-id-and-what-is-its-uses-95070

if i'm right,, you import data from excel file without "id" columns ,, right ??

if you not defined "id" values in csv/excel file wich you import,, then odoo would not register external id record

But why when you exporting the data odoo will show "id" column with values wich formated __export__.product_template_{number} ?it because when you export the record, odoo will check is record already has external_id ? if it not,, odoo will create external id for the record first,,

External id stored in ir.model.data,, on the backend ui,  you can access it by activating developer mode,, then go to "Settings"->technical->Sequence&Identifiers->External Identifier"

For explanation maybe you can try this step:

  1. Import an example data (without "id" column) for product.template, for example try this

    one (product.template.csv) :

    name,default_code,sale_ok,purchase_ok,list_price
    TEST PRODUCT,TEST001,1,1,25000
  2. Get your new database id data and search it on "external identifier" menu ( ir.model.data),,  find by model and record id,, see are its created after importing #1 ?

  3. Try export the data that you import,, the file will contains external id (generated by odoo)

  4. Search it on External Identifier menu,,  it should new external id generated because you imported non defined external id records

But if you try to import data with defining "id" column,, it will generate ir.model.data record when importing the record from external sources (csv/excel)

Ex (defining id in file to import):

id,name,default_code,sale_ok,purchase_ok,list_price
product_template_test001,TEST PRODUCT 1,TEST001,1,1,26000



Should be carefull ?yes,, worry will overwrite data,, but if you has a good plan for structure it very usefull

For using external sources data,, i suggest you to define the external id on spreadsheet input file to be write in odoo, because your your record stored on odoo depends by your spreadsheet/excel input,, so you need to have a same identifier between both of dabatabses (spreadsheet and pgsql/odoo) 


 

Regards..

1
아바타
취소
J C
작성자

Great info, thanks for your reply! I understand the uses of external ids better now. If the records exist they will be updated and if they don't it will be inserted and automatically assigned an ID. That's good because in any case, the new info will be there. However we use Odoo always from importing Excel to Odoo so exporting these IDs is not needed in our case (one way).

I think the only question remaining is whether updating the product info from an Excel has influence through the POS or finance system. I don't understand how Odoo processes that in relation to the products list. I'll try to explain again with my example of the fruit before.

If I make a sale in the POS/Sales of my cherries which has ID 2. If I then update my list (import newest version) and now blueberry has ID 2 will the POS/Sale orders get messed up with that new data?

And what about if I disregard the ID and import without, will the sale process be influenced?

La Jayuhni Yarsyah

What is you mean with "ID" ??database id or external id ??

if you mean is database id,, is id on pgsql or the spreadsheet ?? i

Maybe you can show more detail data/structure that you implement,,,

If the record in odoo has "external_id", then you try to update it with importing by spreadsheet/csv file wich in those file you define an external id (id) value, it will overwrite the record (in your question that cherry will update to blueberry)

will messed up ?i think it depends on your purpose and your sale report to be expected..

if you disregard the id it will create new record.

and 1more, dont forget to checklist my answer (:-D)

Thanks and Regards

La Jayuhni Yarsyah

J C
작성자

I mean database ID. The ID Odoo creates to have a unique value for every product. Let's focus on what I mean with the sale process.

I'll explain our situation better. We have a system selling spare parts and we are importing all items into Odoo part by part as we count them. So today it is a list of 500 items, next week maybe 1000 items. The list always grows. We keep everything correct in Excel first before importing into Odoo. Soon we want to start importing our first part into Odoo for a small scale test. So we are importing about 200 items with the correct name, quantity, price and barcode. Printing the barcodes and sticking them onto the items allows us to use the POS system in Odoo for registering orders. So the item gets scanned first and then registered in the POS before it is sold.

This means once a sale is done there is a POS order linked to that article, right. Hence my question how all these orders are linked to the products?

If a certain product is linked to a sale and later by importing a new list this certain item gets a new internal ID (overwritten) will we still be able to see the initial item linked to the POS order?

La Jayuhni Yarsyah

Yes it should still linked to overwritted product..

So for example:

Product (import spreadsheet):

ID = product_1, Name="Monitor", Barcode="P.001", SalePrice=200

Then the imported product will got database id=1

Then when you do transaction with odoo POS module (Sale Order Line example data):

Customer ID=100,Product ID=1,UnitPrice=200,Qty=2,Total=400

And Then, a few weeks latter you update / change product description with importing spreadsheet file , ex:

ID = product_1, Name="LED Monitor", Barcode="P.001A", SalePrice=200

When after updating the product, the current related product from sale_order_line table will still related to product_id=1,, but when you open in odoo interface, in product fields will show the current product description,,

Hope it done your questions

Regards

La Jayuhni Yarsyah

아바타
Xavier Brochard
베스트 답변

Internal ID are numbers set automaticaly by Postgresql (the database engine), they will not be reused : Postgresql will allways increase the number.

As Erwin said, don't touch database (internal) IDs. But don't worry, you can't modify them without good Postgresql knowledge. I've forced internal IDs for specific needs, and after it was (hardly) done I've found a better, simpler and quicker solution.
0
아바타
취소
아바타
Ermin Trevisan
베스트 답변

Never touch database (internal) IDs. Only use external IDs. You can export your products to see what happens to the IDs. Both IDs are IDs, they identify objects and are not influenced by processes.

0
아바타
취소
J C
작성자

Hi Ermin, thanks for your quick answer and clarification. Do you see where my worry is? What if something is sold having a specific internal ID and then after I import a new list with more products added and the IDs change? Will Odoo have troubles mapping IDs to the new items when values are overwritten and are you sure it does not influence the sale orders and accounting stuff already created on the first ID value?

Ermin Trevisan

If you buy and sell apples, you define a product "Apple". This product has a database ID and an external ID. The IDs remain the same regardless if you buy or sell apples. You do not have an ID for single individual apples. If you import data with an external ID and this ID already exists, the existing data gets updated, if it does not exist, a new object (product) will be created.

Ermin Trevisan

If you buy and sell apples, you define a product "Apple". This product has a database ID and an external ID. The IDs remain the same regardless if you buy or sell apples. You do not have an ID for single individual apples. If you import data with an external ID and this ID already exists, the existing data gets updated, if it does not exist, a new object (product) will be created.

Ermin Trevisan

If you want to use identifications for each singular apple individually, you have to use serial numbers.

J C
작성자

I'll take your example: if I have import a list of 3 articles; apples, cherries and oranges (alphabetically sorted) respectively having internal ID 1, 2 and 3 (automatically given by Odoo). If I import a new list later that adds item blueberry in between apples and cherries will the IDs shift like 1-apples 2-blueberry 3-cherries 4-oranges or will it keep the order of before and give blueberry number 4?

Are the internal IDs coupled to the the other fields or how does Odoo process this exactly?

토론이 재미있으신가요? 직접 참여해보세요!

지금 바로 가입하여 독점 서비스를 이용해보고 특별한 커뮤니티와 소통하세요!

가입
커뮤니티
  • 튜토리얼
  • 문서
  • 포럼
오픈 소스
  • 다운로드
  • Github
  • Runbot
  • 번역
서비스
  • Odoo.sh 호스팅
  • 고객 지원
  • 업그레이드
  • 맞춤 개발
  • 학습
  • 회계사 검색
  • 파트너 검색
  • 파트너 등록
회사 소개
  • 회사 소개
  • 브랜드 자산
  • 상담 문의
  • 인재 채용
  • 행사
  • 팟캐스트
  • 블로그
  • 고객 사례
  • 법적고지 • 개인정보
  • 보안
الْعَرَبيّة 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는 CRM, 이커머스, 회계, 재고, POS, 프로젝트 관리 등 기업의 모든 요구 사항을 충족하도록 설계된 오픈 소스 기반의 통합 비즈니스 앱 제품군입니다.

Odoo의 간편한 UI와 완벽하게 통합된 기능을 직접 확인해 보세요.

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