跳至內容
選單
此問題已被標幟
2636 瀏覽次數

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
7840
9
7月 25
17715
0
9月 15
5865
2
5月 15
4383
0
12月 16
3528