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