From 6db882d50d57f98638d43de0affbb405e43cc409 Mon Sep 17 00:00:00 2001 From: Pierre Masereel Date: Wed, 24 Aug 2016 13:31:14 +0200 Subject: [PATCH] [FIX] account_check_printing: error during migration During the conversion of the server action "action_account_print_checks", the "self.env" variable was wrongly kept. Now in server actions we are using the variable "env" directly. --- .../account_check_printing/data/account_check_printing_data.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account_check_printing/data/account_check_printing_data.xml b/addons/account_check_printing/data/account_check_printing_data.xml index 95fd0ab2d20..4092efd96fd 100644 --- a/addons/account_check_printing/data/account_check_printing_data.xml +++ b/addons/account_check_printing/data/account_check_printing_data.xml @@ -16,7 +16,7 @@ if context.get('active_model') == 'account.payment' and context.get('active_ids'): - action = self.env['account.payment'].browse(context['active_ids']).print_checks() + action = env['account.payment'].browse(context['active_ids']).print_checks()