From 6c9636860529cca60d8ac93cd2a01e215a334055 Mon Sep 17 00:00:00 2001 From: Chris Mann Date: Fri, 19 Jan 2024 10:46:39 +0000 Subject: [PATCH] Fix issue which blocks creating res.company records due to setting default company_id on res.partner - No longer needed --- coreff_base/__manifest__.py | 2 +- coreff_base/models/res_partner.py | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/coreff_base/__manifest__.py b/coreff_base/__manifest__.py index 7e0b61c..d9586f0 100644 --- a/coreff_base/__manifest__.py +++ b/coreff_base/__manifest__.py @@ -6,7 +6,7 @@ { "name": "CoreFF: Basic Module", - "version": "14.0.1.0.0", + "version": "14.0.1.0.1", "category": "CoreFF", "author": "Article714", "license": "LGPL-3", diff --git a/coreff_base/models/res_partner.py b/coreff_base/models/res_partner.py index 134d290..20c9dc5 100644 --- a/coreff_base/models/res_partner.py +++ b/coreff_base/models/res_partner.py @@ -23,11 +23,6 @@ class ResPartner(models.Model): ) ] - # CM: Add company_id field manually as required to set default - # to current company - company_id = fields.Many2one( - 'res.company', index=True, default=lambda self: self.env.company - ) coreff_company_code = fields.Char() coreff_company_code_mandatory = fields.Boolean( related="company_id.coreff_company_code_mandatory"