From ceeec4679d96f293ab3a419a8894a0bffe89a392 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Mon, 31 Oct 2016 17:32:44 +0100 Subject: [PATCH] [FIX] use setattr, otherwise we can't set the attribute --- account_banking_payment_export/models/account_payment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_banking_payment_export/models/account_payment.py b/account_banking_payment_export/models/account_payment.py index eefebc2ac..c4339b027 100644 --- a/account_banking_payment_export/models/account_payment.py +++ b/account_banking_payment_export/models/account_payment.py @@ -10,7 +10,7 @@ try: # the module account_payment, because the store attribute is set later # and Odoo doesn't defer this removal from openerp.addons.account_payment.account_payment import payment_order - payment_order._columns['total'].nodrop = True + setattr(payment_order._columns['total'], 'nodrop', True) except ImportError: pass