[FIX] account_asset_management - use company from env and not user
This commit is contained in:
parent
84e30fd0d3
commit
b0eed2f782
@ -36,7 +36,7 @@ class WizAccountAssetReport(models.TransientModel):
|
||||
|
||||
@api.model
|
||||
def _default_company_id(self):
|
||||
return self.env.user.company_id
|
||||
return self.env.company
|
||||
|
||||
@api.onchange("company_id")
|
||||
def _onchange_company_id(self):
|
||||
|
Loading…
Reference in New Issue
Block a user