Skip to Content
Menú
This question has been flagged
2835 Vistes

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
Descartar
Related Posts Respostes Vistes Activitat
2
de jul. 22
8090
9
de jul. 25
18034
0
de set. 15
6118
2
de maig 15
4618
0
de des. 16
3808