[FIX] account_banking_payment_export: Avoid the drop of the column total on updates

This commit is contained in:
Pedro M. Baeza
2015-10-01 01:37:00 +02:00
parent a71fc11f25
commit 8ba8f39cf0

View File

@@ -24,6 +24,14 @@
##############################################################################
from openerp import models, fields, api, exceptions, workflow, _
try:
# This is to avoid the drop of the column total each time you update
# 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
except ImportError:
pass
class PaymentOrder(models.Model):