[fix][partner_statement] correct default company
partner_statement 13.0.1.2.0
This commit is contained in:
committed by
Miquel Raïch
parent
55ba69fd29
commit
f6c6ce950e
@@ -3,7 +3,7 @@
|
||||
|
||||
{
|
||||
"name": "Partner Statement",
|
||||
"version": "13.0.1.1.0",
|
||||
"version": "13.0.1.2.0",
|
||||
"category": "Accounting & Finance",
|
||||
"summary": "OCA Financial Reports",
|
||||
"author": "ForgeFlow, Odoo Community Association (OCA)",
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user