[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")
|
@api.depends("profile_id")
|
||||||
def _compute_group_ids(self):
|
def _compute_group_ids(self):
|
||||||
for asset in self.filtered("profile_id"):
|
for asset in self:
|
||||||
asset.group_ids = asset.profile_id.group_ids
|
if asset.profile_id:
|
||||||
|
asset.group_ids = asset.profile_id.group_ids
|
||||||
|
|
||||||
@api.depends("profile_id")
|
@api.depends("profile_id")
|
||||||
def _compute_method(self):
|
def _compute_method(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user