From db6c581823c628bd5854064a56096fac16b16e90 Mon Sep 17 00:00:00 2001 From: Ruchir Shukla Date: Thu, 5 Dec 2013 14:48:03 +0530 Subject: [PATCH 1/2] make account_payment_shortcut installable so default Invoices will be selected in Wizard --- account_payment_shortcut/__openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_payment_shortcut/__openerp__.py b/account_payment_shortcut/__openerp__.py index 8261bdcd2..830e37931 100644 --- a/account_payment_shortcut/__openerp__.py +++ b/account_payment_shortcut/__openerp__.py @@ -29,5 +29,5 @@ 'description': ''' When composing a payment order, select all candidates by default (in the second step of the "Select invoices to pay" wizard). ''', - 'installable': False, + 'installable': True, } From 1f9b56be79ae2bd4cb108d03f2f4bbf691235ff5 Mon Sep 17 00:00:00 2001 From: Ruchir Shukla Date: Thu, 5 Dec 2013 14:48:43 +0530 Subject: [PATCH 2/2] return Form view of Payment Orders so record will be reloaded --- account_banking_payment/model/payment_order_create.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/account_banking_payment/model/payment_order_create.py b/account_banking_payment/model/payment_order_create.py index c7ac88790..a3d1ed9b0 100644 --- a/account_banking_payment/model/payment_order_create.py +++ b/account_banking_payment/model/payment_order_create.py @@ -194,4 +194,11 @@ class payment_order_create(orm.TransientModel): or line.journal_id.currency.id or line.journal_id.company_id.currency_id.id), }, context=context) - return {'type': 'ir.actions.act_window_close'} + return {'name': _('Payment Orders'), + 'context': context, + 'view_type': 'form', + 'view_mode': 'form,tree', + 'res_model': 'payment.order', + 'res_id': context['active_id'], + 'type': 'ir.actions.act_window', + }