Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2696 Visninger

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
2
jul. 22
7901
9
jul. 25
17785
0
sep. 15
5946
2
maj 15
4468
0
dec. 16
3637