Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2690 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
7895
9
lip 25
17766
0
wrz 15
5926
Setting Currency Rozwiązane
2
maj 15
4449
0
gru 16
3610