Ir al contenido
Menú
Se marcó esta pregunta
2777 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
7970
9
jul 25
17868
0
sept 15
6018
2
may 15
4532
0
dic 16
3739