Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2679 Представления

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
7883
9
июл. 25
17752
0
сент. 15
5906
Setting Currency Решено
2
мая 15
4432
0
дек. 16
3602