Ir al contenido
Menú
Se marcó esta pregunta
2631 Vistas

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
Publicaciones relacionadas Respuestas Vistas Actividad
2
jul 22
7834
9
jul 25
17714
0
sept 15
5862
2
may 15
4378
0
dic 16
3512