Ir al contenido
Menú
Se marcó esta pregunta
2684 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
7886
9
jul 25
17752
0
sept 15
5911
2
may 15
4433
0
dic 16
3604