~openerp-commiter/openobject-addons/extra-6.0

« back to all changes in this revision

Viewing changes to ons_multicompany_views/partners.py

  • Committer: root
  • Author(s): openerp-open-net
  • Date: 2011-08-25 13:28:02 UTC
  • Revision ID: root@test-openerp-603-01-20110825132802-ks48zfk8lk3pslnv
[ADD] OpenNet's modules

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
#
 
3
#  File: partners.py
 
4
#  Module: ons_multicompany_views
 
5
#
 
6
#  Created by cyp@open-net.ch
 
7
#
 
8
#  Copyright (c) 2010 Open-Net Ltd. All rights reserved.
 
9
##############################################################################
 
10
#
 
11
#    OpenERP, Open Source Management Solution
 
12
#    Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
 
13
#
 
14
#    This program is free software: you can redistribute it and/or modify
 
15
#    it under the terms of the GNU Affero General Public License as
 
16
#    published by the Free Software Foundation, either version 3 of the
 
17
#    License, or (at your option) any later version.
 
18
#
 
19
#    This program is distributed in the hope that it will be useful,
 
20
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
21
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
22
#    GNU Affero General Public License for more details.
 
23
#
 
24
#    You should have received a copy of the GNU Affero General Public License
 
25
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
26
#
 
27
##############################################################################
 
28
 
 
29
import netsvc
 
30
from osv import fields, osv
 
31
import tools
 
32
import netsvc
 
33
import time
 
34
 
 
35
class res_partner(osv.osv):
 
36
        _inherit = 'res.partner'
 
37
        
 
38
        _columns = {
 
39
                'ons_companies': fields.many2many('res.company', 'ons_res_partner_company_rel', 'partner_id', 'company_id', 'Guess who is using it'),
 
40
        }
 
41
        
 
42
res_partner()