Skip to Content
Menú
This question has been flagged
2995 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
8320
9
de jul. 25
18328
0
de set. 15
6332
2
de maig 15
4799
0
de des. 16
3969