account-reconcile/account_mass_reconcile_tran.../models/mass_reconcile.py

22 lines
693 B
Python

# -*- coding: utf-8 -*-
# © 2013-2016 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
from openerp import api, models
class AccountMassReconcileMethod(models.Model):
_inherit = 'account.easy.reconcile.method'
@api.model
def _get_all_rec_method(self):
_super = super(AccountMassReconcileMethod, self)
methods = _super._get_all_rec_method()
methods += [
('easy.reconcile.advanced.transaction_ref',
'Advanced. Partner and Transaction Ref.'),
('easy.reconcile.advanced.trans_ref_vs_ref',
'Advanced. Partner and Transaction Ref. vs Ref.'),
]
return methods