Multi is the default api for methods, it is not necessary to explicitly decorate methods with it, adds clutter and most people use it because they see that the rest of the code uses it. Done with `find . -type f -name '*.py' | xargs sed -i '/@api.multi/d'`
13 lines
427 B
Python
13 lines
427 B
Python
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'}
|