partner-contact/partner_company_default/models/res_company.py

14 lines
359 B
Python
Raw Normal View History

2024-11-08 07:13:24 +00:00
# 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)