From 957eb799d9afa822ddc36d61b3f38864f969af30 Mon Sep 17 00:00:00 2001 From: Vincent Renaville Date: Tue, 25 Mar 2014 16:45:31 +0100 Subject: [PATCH] [FIX] change orm.TransientModel to orm.Model --- account_cancel_invoice_check_payment_order/account_invoice.py | 2 +- account_cancel_invoice_check_voucher/account_invoice.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/account_cancel_invoice_check_payment_order/account_invoice.py b/account_cancel_invoice_check_payment_order/account_invoice.py index 118de852e..2634dcb37 100644 --- a/account_cancel_invoice_check_payment_order/account_invoice.py +++ b/account_cancel_invoice_check_payment_order/account_invoice.py @@ -22,7 +22,7 @@ from openerp.tools.translate import _ from openerp.osv import osv, orm -class account_invoice(orm.TransientModel): +class account_invoice(orm.Model): _inherit = "account.invoice" def action_cancel(self, cr, uid, ids, *args): diff --git a/account_cancel_invoice_check_voucher/account_invoice.py b/account_cancel_invoice_check_voucher/account_invoice.py index 91112c334..d2929a190 100644 --- a/account_cancel_invoice_check_voucher/account_invoice.py +++ b/account_cancel_invoice_check_voucher/account_invoice.py @@ -24,7 +24,7 @@ from openerp.tools.translate import _ from openerp.osv import osv, orm -class account_invoice(orm.TransientModel): +class account_invoice(orm.Model): _inherit = "account.invoice" def action_cancel(self, cr, uid, ids, context=None):