Skip to content

Commit

Permalink
[FIX] account_asset: posted depreciation line
Browse files Browse the repository at this point in the history
When the account move line linked to a depreciation line is deleted, the
depreciation is still considered as 'Posted'.

opw-691084
Fixes odoo#13801
  • Loading branch information
nim-odoo committed Oct 20, 2016
1 parent ebf3b3d commit 65878a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/account_asset/account_asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,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')
@api.depends('move_id', 'asset_id.account_move_ids')
def _get_move_check(self):
self.move_check = bool(self.move_id)

Expand Down

0 comments on commit 65878a5

Please sign in to comment.