123456789101112 |
- # -*- coding: utf-8 -*-
- from openerp.http import request
- _MODEL = 'res.currency'
- def check_base_currency():
- base_currency = request.env[_MODEL].search([('base', '=', True)])
- if not base_currency:
- request.env.user.company_id.currency_id.write({
- 'base': True
- })
|