summaryrefslogtreecommitdiff
path: root/addons/account/wizard/account_unreconcile.py
blob: 790e9b280fc1a0afde58e16d883f1eb73f4659cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
from odoo import models, api


class AccountUnreconcile(models.TransientModel):
    _name = "account.unreconcile"
    _description = "Account Unreconcile"

    def trans_unrec(self):
        context = dict(self._context or {})
        if context.get('active_ids', False):
            self.env['account.move.line'].browse(context.get('active_ids')).remove_move_reconcile()
        return {'type': 'ir.actions.act_window_close'}