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

I'm trying to do something like this:
    

product_id = 2
product = self.env['product.product'].search([('id''=', product_id)])
unit_amount = product.price_get('standard_price')[product.id]


But I get a price that seems to be always in the default currency. How do I get that price with currency defined elsewhere (for example in separate field).

아바타
취소
관련 게시물 답글 화면 활동
2
7월 22
7953
9
7월 25
17850
0
9월 15
6006
Setting Currency 해결 완료
2
5월 15
4522
0
12월 16
3712