**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

undone_dotation_number = self.method_number
        if self.method_time == 'end':
            end_date = datetime.strptime(self.method_end, DF).date()
            undone_dotation_number = 0
            while depreciation_date <= end_date:
                depreciation_date = date(depreciation_date.year, depreciation_date.month, depreciation_date.day) + relativedelta(months=+self.method_period)
                undone_dotation_number += 1
        if self.prorata:
            undone_dotation_number += 1
        return undone_dotation_number
    @api.multi
    def compute_depreciation_board(self):
        self.ensure_one()
        posted_depreciation_line_ids = self.depreciation_line_ids.filtered(lambda x: x.move_check).sorted(key=lambda l: l.depreciation_date)
        unposted_depreciation_line_ids = self.depreciation_line_ids.filtered(lambda x: not x.move_check)
        
        commands = [(2, line_id.id, False) for line_id in unposted_depreciation_line_ids]
        if self.value_residual != 0.0:
            amount_to_depr = residual_amount = self.value_residual
            if self.prorata:
                depreciation_date = datetime.strptime(self._get_last_depreciation_date()[self.id], DF).date()
            else:
                
                
                if self.method_period >= 12:
                    asset_date = datetime.strptime(self.date[:4] + '-01-01', DF).date()
                else:
                    asset_date = datetime.strptime(self.date[:7] + '-01', DF).date()