diff --git a/addons/account_check_writing/wizard/account_check.py b/addons/account_check_writing/wizard/account_check.py index 372a892d19d..d9904249154 100644 --- a/addons/account_check_writing/wizard/account_check.py +++ b/addons/account_check_writing/wizard/account_check.py @@ -39,7 +39,7 @@ class account_check_write(osv.osv_memory): voucher_ids = context.get('active_ids', []) number = int(self.browse(cr, uid, ids[0], context=context).check_number) if voucher_ids: - checks = voucher_obj.browse(cr, uid, context['active_ids'], context=context) + checks = voucher_obj.browse(cr, uid, voucher_ids, context=context) for check in checks: voucher_obj.write(cr, uid, [check.id], {'number': str(number)}, context=context) number += 1 diff --git a/addons/account_check_writing/wizard/account_check_view.xml b/addons/account_check_writing/wizard/account_check_view.xml index a3930540e43..0e4121e9f08 100644 --- a/addons/account_check_writing/wizard/account_check_view.xml +++ b/addons/account_check_writing/wizard/account_check_view.xml @@ -6,15 +6,15 @@ account.check.form account.check.write -
- - - -
-
-
+
+ + + + +