# -*- coding: utf-8 -*-
# © 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from openerp import models, fields


class ResPartnerBank(models.Model):
    _inherit = 'res.partner.bank'

    # TODO: It doesn't work, I don't understand why
    # So I change the label of the field in the view
    acc_type = fields.Char(string='Bank Account Type')

@@ -273,106 +273,132 @@
   # 
-TODO: It doesn't work, I don't understand why%0A    # So I change the label of the field in the view
+I also have to change the label of the field in the view%0A    # I store the field, so that we can do groupby and search on it
 %0A   
@@ -447,10 +447,22 @@
 nt Type'
+, store=True
 )%0A

Store field acc_type on res.partner.bank, so that we can search and groupby on it