diff options
| author | Pierre Masereel <pim@odoo.com> | 2016-08-24 13:31:14 +0200 |
|---|---|---|
| committer | Pierre Masereel <pim@odoo.com> | 2016-08-24 14:32:00 +0200 |
| commit | 6db882d50d57f98638d43de0affbb405e43cc409 (patch) | |
| tree | 9872d89523c8e6576d97594970c392f18aa1a14c /addons/account_check_printing/data | |
| parent | 2cdb9f517f6d9d9dc7d99f2f037f3783fb1cd6af (diff) | |
[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.
Diffstat (limited to 'addons/account_check_printing/data')
| -rw-r--r-- | addons/account_check_printing/data/account_check_printing_data.xml | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ <field name="model_id" ref="account.model_account_payment"/> <field name="code"> 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() </field> </record> |
