You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
450 B

# Copyright 2018 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo 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