[FIX] account_asset: remove dependency on deleted field

This commit is contained in:
Christophe Simonis
2016-10-24 14:45:45 +02:00
parent 25e0b25508
commit a18fc55ffc
+1 -1
View File
@@ -427,7 +427,7 @@ class AccountAssetDepreciationLine(models.Model):
move_check = fields.Boolean(compute='_get_move_check', string='Posted', track_visibility='always', store=True)
@api.one
@api.depends('move_id', 'asset_id.account_move_ids')
@api.depends('move_id')
def _get_move_check(self):
self.move_check = bool(self.move_id)