Browse Source

[FIX]correct default company

pull/762/head
Rujia Liu 4 years ago
parent
commit
ca6bfd998f
  1. 2
      partner_statement/wizard/statement_common.py

2
partner_statement/wizard/statement_common.py

@ -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…
Cancel
Save