Search code examples
pythonodooodoo-8erp

Get user's currency in Odoo 8 (API V7)


I need to format a report with the currency of the company's user in Odoo 8.for that I have to get the currency (res.currency) of the current company.

How could I have this data using the old api (API V7).

Thanks.


Solution

  • You can use :

    self.pool.get('res.users').browse(cr, uid, uid).company_id.currency_id.id