mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[FIX] account_asset_management - use company from env and not user
This commit is contained in:
committed by
sbiosca-s73
parent
81f39c95c8
commit
b0b16e8213
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user