Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2984 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
8308
9
jul. 25
18301
0
set. 15
6316
2
mai. 15
4790
0
dez. 16
3958