Skip to Content
Menu
This question has been flagged
2664 Rodiniai

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).

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
liep. 22
7854
9
liep. 25
17728
0
rugs. 15
5884
2
geg. 15
4407
0
gruod. 16
3556