2
0

[FIX] account_asset_management - use company from env and not user

This commit is contained in:
Jérémy Didderen 2023-07-04 10:08:13 +02:00
parent 84e30fd0d3
commit b0eed2f782

View File

@ -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):