|
@ -1,6 +1,6 @@ |
|
|
# Copyright 2018 Tecnativa - Sergio Teruel |
|
|
# Copyright 2018 Tecnativa - Sergio Teruel |
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). |
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). |
|
|
from odoo import fields, models |
|
|
|
|
|
|
|
|
from odoo import api, fields, models |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ResPartner(models.Model): |
|
|
class ResPartner(models.Model): |
|
@ -10,3 +10,9 @@ class ResPartner(models.Model): |
|
|
comodel_name='res.partner', |
|
|
comodel_name='res.partner', |
|
|
string='Group', |
|
|
string='Group', |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
@api.model |
|
|
|
|
|
def _commercial_fields(self): |
|
|
|
|
|
res = super()._commercial_fields() |
|
|
|
|
|
res.append('group_id') |
|
|
|
|
|
return res |