Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2841 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
8090
9
čvc 25
18038
0
zář 15
6118
2
kvě 15
4618
0
pro 16
3812