mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[FIX] account_asset_management: Fix error from group_ids in asset when set profile_id
This commit is contained in:
committed by
sbiosca-s73
parent
28f81821ed
commit
4855a2cd76
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user