Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2639 Переглядів

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
лип. 22
7841
9
лип. 25
17715
0
вер. 15
5865
Setting Currency Вирішено
2
трав. 15
4383
0
груд. 16
3531