From 8ba8f39cf07b6e858e03175ae2b1951534c26986 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Thu, 1 Oct 2015 01:37:00 +0200 Subject: [PATCH] [FIX] account_banking_payment_export: Avoid the drop of the column total on updates --- account_banking_payment_export/models/account_payment.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/account_banking_payment_export/models/account_payment.py b/account_banking_payment_export/models/account_payment.py index 795054cc5..3cad2f4cc 100644 --- a/account_banking_payment_export/models/account_payment.py +++ b/account_banking_payment_export/models/account_payment.py @@ -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):