Se rendre au contenu
Menu
Cette question a été signalée

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
Ignorer
Publications associées Réponses Vues Activité
2
juil. 22
7849
9
juil. 25
17720
0
sept. 15
5881
2
mai 15
4398
0
déc. 16
3551