~account-report-core-editor/account-financial-report/trunk

« back to all changes in this revision

Viewing changes to account_financial_report/model/res_company.py

  • Committer: Joel Grand-Guillaume
  • Date: 2012-12-21 06:52:23 UTC
  • mfrom: (22.2.13 account-financial-report_7)
  • Revision ID: joel.grandguillaume@camptocamp.com-20121221065223-w6smgegz80ofxl99
[MRG] Migration from 6.1 to 7.0:
Fixed columns in reports,
Search views,
Modified for PEP8 compilance,
Removed some deprecated code,
Using openerp namespaces where needed,
Models with proper parent

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/python
2
 
# -*- encoding: utf-8 -*-
 
2
# -*- coding: utf-8 -*-
3
3
###########################################################################
4
4
#    Module Writen to OpenERP, Open Source Management Solution
5
5
#    Copyright (C) OpenERP Venezuela (<http://openerp.com.ve>).
23
23
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
24
24
################################################################################
25
25
 
26
 
from osv import osv
27
 
from osv import fields
28
 
from tools.translate import _
 
26
from openerp.osv import orm
 
27
from openerp.osv import fields
29
28
 
30
 
class res_company(osv.osv):
 
29
class res_company(orm.Model):
31
30
    _inherit = 'res.company'
32
31
    _columns = {
33
 
        'credit_account_ids':fields.many2many('account.account',
 
32
        'credit_account_ids': fields.many2many('account.account',
34
33
                                    'credit_account_company_rel',
35
34
                                    'company_id', 'account_id',
36
35
                                    'Creditable Accounts'),
37
 
        'debit_account_ids':fields.many2many('account.account',
 
36
        'debit_account_ids': fields.many2many('account.account',
38
37
                                    'debit_account_company_rel',
39
38
                                    'company_id', 'account_id',
40
39
                                    'Debitable Accounts'),
41
40
    }
42
 
res_company()