[fix][partner_statement] correct default company
partner_statement 13.0.1.2.0pull/1106/head
parent
03c634cf4f
commit
2785c5662d
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
"name": "Partner Statement",
|
"name": "Partner Statement",
|
||||||
"version": "13.0.1.1.0",
|
"version": "13.0.1.2.0",
|
||||||
"category": "Accounting & Finance",
|
"category": "Accounting & Finance",
|
||||||
"summary": "OCA Financial Reports",
|
"summary": "OCA Financial Reports",
|
||||||
"author": "ForgeFlow, Odoo Community Association (OCA)",
|
"author": "ForgeFlow, Odoo Community Association (OCA)",
|
||||||
|
|
|
@ -14,7 +14,7 @@ class StatementCommon(models.AbstractModel):
|
||||||
def _get_company(self):
|
def _get_company(self):
|
||||||
return (
|
return (
|
||||||
self.env["res.company"].browse(self.env.context.get("force_company"))
|
self.env["res.company"].browse(self.env.context.get("force_company"))
|
||||||
or self.env.user.company_id
|
or self.env.company
|
||||||
)
|
)
|
||||||
|
|
||||||
name = fields.Char()
|
name = fields.Char()
|
||||||
|
|
Loading…
Reference in New Issue