Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2945 Zobrazení

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
čvc 22
8272
9
čvc 25
18249
0
zář 15
6273
2
kvě 15
4757
0
pro 16
3921