2018-01-16 11:34:37 +01:00
|
|
|
from flectra import models, api
|
2018-01-16 06:58:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
class AccountUnreconcile(models.TransientModel):
|
|
|
|
_name = "account.unreconcile"
|
|
|
|
_description = "Account Unreconcile"
|
|
|
|
|
|
|
|
@api.multi
|
|
|
|
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'}
|