[fix][partner_statement] correct default company

partner_statement 13.0.1.2.0
This commit is contained in:
Jordi Ballester
2021-04-29 01:12:35 +02:00
committed by Miquel Raïch
parent 55ba69fd29
commit f6c6ce950e
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ class StatementCommon(models.AbstractModel):
def _get_company(self):
return (
self.env["res.company"].browse(self.env.context.get("force_company"))
or self.env.user.company_id
or self.env.company
)
name = fields.Char()