Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2871 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
8105
9
jul. 25
18055
0
set. 15
6130
2
mai. 15
4633
0
dez. 16
3828