You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
469 B
Python

from odoo import models
class AccountAccount(models.Model):
_inherit = "account.account"
def action_open_reconcile(self):
self.ensure_one()
# Open reconciliation view for this account
action_context = {'show_mode_selector': False, 'mode': 'accounts', 'account_ids': [self.id,]}
return {
'type': 'ir.actions.client',
'tag': 'manual_reconciliation_view',
'context': action_context,
}