Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2642 Visualizações

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
2
jul. 22
7842
9
jul. 25
17715
0
set. 15
5866
2
mai. 15
4386
0
dez. 16
3532