1
# -*- coding: utf-8 -*-
4
# Module: ons_multicompany_views
6
# Created by cyp@open-net.ch
8
# Copyright (c) 2010 Open-Net Ltd. All rights reserved.
9
##############################################################################
11
# OpenERP, Open Source Management Solution
12
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
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.
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.
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/>.
27
##############################################################################
30
from osv import fields, osv
35
class res_partner(osv.osv):
36
_inherit = 'res.partner'
39
'ons_companies': fields.many2many('res.company', 'ons_res_partner_company_rel', 'partner_id', 'company_id', 'Guess who is using it'),