Skip to Content
Menú
This question has been flagged
2630 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
7833
9
de jul. 25
17712
0
de set. 15
5862
2
de maig 15
4378
0
de des. 16
3509