partner-contact/partner_company_default/models/res_company.py
2024-11-08 08:13:24 +01:00

14 lines
359 B
Python

# Copyright 2023 Quartile Limited
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from flectra import api, models
class ResCompany(models.Model):
_inherit = "res.company"
@api.model_create_multi
def create(self, vals_list):
self = self.with_context(creating_from_company=True)
return super().create(vals_list)