Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2637 Prikazi

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
jul. 22
7840
9
jul. 25
17715
0
sep. 15
5865
2
maj 15
4383
0
dec. 16
3528