From 0c0a076abe5421123c7b70aef09962cff7b4daa0 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Sat, 13 Jun 2015 13:57:01 +0200 Subject: [PATCH] Add @api.model on _get_struct_communication_types --- account_banking_pain_base/models/payment_line.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/account_banking_pain_base/models/payment_line.py b/account_banking_pain_base/models/payment_line.py index 9717fd562..8f0160be2 100644 --- a/account_banking_pain_base/models/payment_line.py +++ b/account_banking_pain_base/models/payment_line.py @@ -20,12 +20,13 @@ # ############################################################################## -from openerp import models, fields +from openerp import models, fields, api class PaymentLine(models.Model): _inherit = 'payment.line' + @api.model def _get_struct_communication_types(self): return [('ISO', 'ISO')]