mirror of
https://gitlab.com/flectra-community/partner-contact.git
synced 2024-12-24 21:31:46 +00:00
19 lines
453 B
Python
19 lines
453 B
Python
|
# Copyright 2018 Tecnativa - Sergio Teruel
|
||
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||
|
from flectra import api, fields, models
|
||
|
|
||
|
|
||
|
class ResPartner(models.Model):
|
||
|
_inherit = 'res.partner'
|
||
|
|
||
|
group_id = fields.Many2one(
|
||
|
comodel_name='res.partner',
|
||
|
string='Group',
|
||
|
)
|
||
|
|
||
|
@api.model
|
||
|
def _commercial_fields(self):
|
||
|
res = super()._commercial_fields()
|
||
|
res.append('group_id')
|
||
|
return res
|