Files
account-reconcile/account_operation_rule/model/account_journal.py
2016-05-17 13:13:01 +02:00

17 lines
443 B
Python

# -*- coding: utf-8 -*-
# © 2016 Cyril Gaudin (Camptocamp)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import api, models
class AccountJournal(models.Model):
_inherit = 'account.journal'
@api.multi
def open_reconciliation_rules(self):
return self.env['ir.actions.act_window'].for_xml_id(
"account_operation_rule",
"action_account_operation_rule"
)