From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- addons/account/wizard/account_unreconcile.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 addons/account/wizard/account_unreconcile.py (limited to 'addons/account/wizard/account_unreconcile.py') diff --git a/addons/account/wizard/account_unreconcile.py b/addons/account/wizard/account_unreconcile.py new file mode 100644 index 00000000..790e9b28 --- /dev/null +++ b/addons/account/wizard/account_unreconcile.py @@ -0,0 +1,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'} -- cgit v1.2.3