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

hi everyone, help me please.

I have 1 problem: For example, I have a convention that beer product (case) has product code A and beer product (bottle) has product code B and 1 case includes 12 bottles.
First I stocked 1 box, then I sold 2 bottles, finally 10 bottles left.
May I ask if Odoo ver 16 has a function to convert the quantity of 2 different product codes?

아바타
취소
베스트 답변

Hi,

Are you asking about the function that handles the conversion of quantity from one uom to another ? If yes, you can check the _compute_quantity function in the product.uom model.

Sample:   line.product_uom._compute_quantity(line.product_qty, line.product_id.uom_id)


Thanks

아바타
취소