diff options
Diffstat (limited to 'addons/account/wizard/account_unreconcile.py')
| -rw-r--r-- | addons/account/wizard/account_unreconcile.py | 12 |
1 files changed, 12 insertions, 0 deletions
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'} |
