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
8275
9
juil. 25
18265
0
sept. 15
6282
2
mai 15
4763
0
déc. 16
3930