Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2770 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
7968
9
jul. 25
17866
0
set. 15
6018
2
mai. 15
4531
0
dez. 16
3734