partner-contact/partner_contact_role/models/res_partner.py

22 lines
426 B
Python
Raw Normal View History

2021-03-23 19:36:29 +00:00
# Copyright 2017 Camptocamp
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from flectra import fields, models
class ResPartner(models.Model):
_inherit = 'res.partner'
role_ids = fields.Many2many(
string='Roles',
comodel_name='res.partner.role',
)
class ResPartnerRole(models.Model):
_name = 'res.partner.role'
_description = 'Partner Role'
name = fields.Char()