Merge pull request #308 from hbrunn/8.0-payment_export-nodrop

[FIX] use setattr, otherwise we can't set the attribute
This commit is contained in:
Alexis de Lattre
2017-05-29 18:19:07 +02:00
committed by GitHub

View File

@@ -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