Skip to content
Snippets Groups Projects
Commit 6db882d5 authored by Pierre Masereel's avatar Pierre Masereel
Browse files

[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.
parent 2cdb9f51
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment