Skip to content
Snippets Groups Projects
Commit fd5ad4fd authored by Benjamin - Le Filament's avatar Benjamin - Le Filament
Browse files

[fix] change env.user.company_id to env.company

parent cd8f0ee3
No related branches found
No related tags found
No related merge requests found
......@@ -21,11 +21,11 @@ class ScopAccountMove(models.Model):
"""
res = super(ScopAccountMove, self).default_get(fields)
if res.get("is_contribution"):
res["journal_id"] = self.env.user.company_id.contribution_journal_id.id
res["journal_id"] = self.env.company.contribution_journal_id.id
else:
if (
res.get("journal_id")
== self.env.user.company_id.contribution_journal_id.id
== self.env.company.contribution_journal_id.id
):
res["is_contribution"] = True
return res
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment