123456789101112131415 |
- # -*- coding: utf-8 -*-
- from openerp.http import request as r
- _MODEL = 'account.journal'
- def get_account_journal_baco():
- return [
- {
- 'id': journal.id,
- 'name': journal.name,
- 'code': journal.code,
- 'type': journal.type,
- 'store_id': journal.store_ids.id
- } for journal in r.env[_MODEL].search([])
- ]
|