跳至内容
菜单
此问题已终结
2641 查看

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

形象
丢弃
相关帖文 回复 查看 活动
2
7月 22
7842
9
7月 25
17715
0
9月 15
5865
2
5月 15
4386
0
12月 16
3531