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):