diff options
| author | Jeremy Kersten <jke@odoo.com> | 2016-11-17 14:11:37 +0100 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2016-11-18 10:03:48 +0100 |
| commit | a55ee3858cbd8cf30a63b3a873003965f15df800 (patch) | |
| tree | 6691795620f323bec581fb5e4308c022e2af66de /addons/account_check_printing/data | |
| parent | f05e8655ee4ee7205c67006ca5a8cb30ed445c81 (diff) | |
[FIX] *: convert action server to new syntax
Use record / records instead of deprecated locals
Diffstat (limited to 'addons/account_check_printing/data')
| -rw-r--r-- | addons/account_check_printing/data/account_check_printing_data.xml | 4 |
1 files changed, 2 insertions, 2 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 4092efd96fd..70eb2b132d3 100644 --- a/addons/account_check_printing/data/account_check_printing_data.xml +++ b/addons/account_check_printing/data/account_check_printing_data.xml @@ -15,8 +15,8 @@ <field name="name">Print Checks</field> <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 = env['account.payment'].browse(context['active_ids']).print_checks() +if records: + action = records.print_checks() </field> </record> |
