[FIX] account_asset_management: Fix error from group_ids in asset when set profile_id
This commit is contained in:
parent
ab3e333b21
commit
79cc93f3dd
@ -313,8 +313,9 @@ class AccountAsset(models.Model):
|
||||
|
||||
@api.depends("profile_id")
|
||||
def _compute_group_ids(self):
|
||||
for asset in self.filtered("profile_id"):
|
||||
asset.group_ids = asset.profile_id.group_ids
|
||||
for asset in self:
|
||||
if asset.profile_id:
|
||||
asset.group_ids = asset.profile_id.group_ids
|
||||
|
||||
@api.depends("profile_id")
|
||||
def _compute_method(self):
|
||||
|
Loading…
Reference in New Issue
Block a user