Skip to Content
Menu
This question has been flagged
2767 Zobrazenia

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šiť
Related Posts Replies Zobrazenia Aktivita
2
júl 22
7968
9
júl 25
17865
0
sep 15
6018
2
máj 15
4530
0
dec 16
3732