**Impacted versions:**
9.0 (probably 10.0)

**Steps to reproduce:**
1.  Install `account_asset` module
2. Create a new asset.
3. Confirm asset
4. Click on generate entry button on any depreciation line. It generates an 'Unposted' journal entry (account.move)
5. Check line state, should be green = Posted.
6. Go to entries and delete the entry.
7. Check again the line state, still green = Posted, but the journal entry doesn't exists.

At `account.move.unlink()`, https://github.com/odoo/odoo/blob/9.0/addons/account_asset/account_asset.py#L402 is not called, then `move_check` remains = True

opw: 691084

addons/account_asset/account_asset.py
for record in self:
            if record.move_check:
                if record.asset_id.category_id.type == 'purchase':
                    msg = _("You cannot delete posted depreciation lines.")
                else:
                    msg = _("You cannot delete posted installment lines.")
                raise UserError(msg)
        return super(AccountAssetDepreciationLine, self).unlink()
class AccountMove(models.Model):
    _inherit = 'account.move'
    asset_id = fields.Many2one('account.asset.asset', string='Asset', ondelete="restrict")
    @api.multi
    def post(self):
        for move in self:
            if move.asset_id:
                move.asset_id.depreciation_line_ids.post_lines_and_close_asset()
        return super(AccountMove, self).post()