콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

why the internal reference field is disabled at the product and which is enabled at the product variant?

what is the use of internal reference at that place?


아바타
취소
베스트 답변

Hello Aarthi, 

Internal reference visible in probuct variants because one product has multiple variants, so you can give a unique identity to each variants with help of internal reference. 

아바타
취소
베스트 답변

Internal Reference is disabled on the Product Template when Variants are enabled so that there can be an Internal Reference (also called SKU) for each Product Variant.




아바타
취소

Ray - I know this is an old thread, but I was looking for an answer to this question this morning. Is there any reason why we can't unhide and populate this field for the product template? I'd like to have the product template have an internal reference, and then the variants would all have their own reference that adds a "- variant_id" value to theirs. Thanks!

Yes.

The reason is that Odoo will intervene and force the Internal Reference of a Product Template to False as soon as you create Product Variants.

Even if you unhide the field, as soon as you create a new variant or change the Internal Reference of an existing Variant, the Internal Reference on the Product Template will be set to False.

What you ask would require a programming change.

See https://github.com/odoo/odoo/blob/16.0/addons/product/models/product_template.py#L335

관련 게시물 답글 화면 활동
2
8월 23
4557
0
10월 21
1853
1
9월 19
5401
2
7월 21
3074
1
6월 25
978