~elbati/account-consolidation/account_parallel_currency_7_tests

« back to all changes in this revision

Viewing changes to account_parallel_currency/res_company.py

  • Committer: Lorenzo Battistini
  • Date: 2013-03-05 10:15:56 UTC
  • Revision ID: lorenzo.battistini@agilebg.com-20130305101556-am09jmb3397d1p2e
[FIX] various minor fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# -*- coding: utf-8 -*-
2
2
##############################################################################
3
3
#    
4
 
#    Copyright (C) 2012 Agile Business Group sagl (<http://www.agilebg.com>)
 
4
#    Copyright (C) 2012-2013 Agile Business Group sagl
 
5
#    (<http://www.agilebg.com>)
5
6
#    Copyright (C) 2012 Domsense srl (<http://www.domsense.com>)
6
7
#
7
8
#    This program is free software: you can redistribute it and/or modify
12
13
#    This program is distributed in the hope that it will be useful,
13
14
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
14
15
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 
#    GNU General Public License for more details.
 
16
#    GNU Affero General Public License for more details.
16
17
#
17
18
#    You should have received a copy of the GNU Affero General Public License
18
19
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
20
#
20
21
##############################################################################
21
22
 
22
 
from osv import osv
 
23
from openerp.osv import fields, orm
23
24
from osv import fields
24
25
 
25
 
class res_company(osv.osv):
 
26
class res_company(orm.Model):
26
27
    _inherit = "res.company"
27
28
 
28
29
    _columns = {
29
30
        'parallel_company_ids': fields.many2many('res.company', 'parallel_companies_rel', 'master_id', 
30
31
            'parallel_id', 'Parallel Companies'),
31
32
    }
32
 
    
33
 
res_company()
 
33