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

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
7843
9
июл. 25
17717
0
сент. 15
5867
Setting Currency Решено
2
мая 15
4388
0
дек. 16
3537