From 41a1a4eff8c1b7317e9dd4b80ba3bd6fe2fee2e7 Mon Sep 17 00:00:00 2001 From: Nicolas Bessi Date: Mon, 28 Apr 2014 15:41:36 +0200 Subject: [PATCH] [FIX] Manual policy wizard should not be launched against customer refund --- account_credit_control/wizard/credit_control_policy_changer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_credit_control/wizard/credit_control_policy_changer.py b/account_credit_control/wizard/credit_control_policy_changer.py index 89a331b68..de331c001 100644 --- a/account_credit_control/wizard/credit_control_policy_changer.py +++ b/account_credit_control/wizard/credit_control_policy_changer.py @@ -60,7 +60,7 @@ class credit_control_policy_changer(orm.TransientModel): return False # raise ValueError('No active_ids passed in context') for invoice in inv_model.browse(cr, uid, active_ids, context=context): - if invoice.type in ('in_invoice', 'in_refund'): + if invoice.type in ('in_invoice', 'in_refund', 'out_refund'): raise orm.except_orm(_('User error'), _('Please use wizard on cutomer invoices'))