Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Fix issue which blocks creating res.company records due to setting default company_id on res.partner - No longer needed #13

Open
wants to merge 1 commit into
base: 14.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion coreff_base/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 0 additions & 5 deletions coreff_base/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down