Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2962 Widoki

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).

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
lip 22
8275
9
lip 25
18264
0
wrz 15
6281
Setting Currency Rozwiązane
2
maj 15
4762
0
gru 16
3930