[FIX] account_payment_mode: Don't change acc_type field type

It's not needed and can cause problems.
This commit is contained in:
Pedro M. Baeza
2019-02-02 01:59:23 +01:00
parent 3ec955ea74
commit c16f06203f
2 changed files with 0 additions and 17 deletions

View File

@@ -2,4 +2,3 @@
from . import account_payment_method
from . import account_payment_mode
from . import account_journal
from . import res_partner_bank

View File

@@ -1,16 +0,0 @@
# © 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import models, fields
class ResPartnerBank(models.Model):
_inherit = 'res.partner.bank'
# I change the label of the field in the view.
# I would also like to store the field to do easy groupby and search,
# but it's not possible because the compute method is inherited
# in base_iban (and maybe in other modules) and, when the field is
# initially computed+stored, it doesn't take into account the
# inherits of the method that compute this field
acc_type = fields.Char(string='Bank Account Type')