Merge lp:~openerp-dev/openobject-addons/7.0-590717-opw-skh into lp:openobject-addons/7.0

Proposed by Somesh Khare
Status: Rejected
Rejected by: Naresh(OpenERP)
Proposed branch: lp:~openerp-dev/openobject-addons/7.0-590717-opw-skh
Merge into: lp:openobject-addons/7.0
Diff against target: 12 lines (+1/-1)
1 file modified
account_payment/wizard/account_payment_order.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/7.0-590717-opw-skh
Reviewer Review Type Date Requested Status
Stéphane Bidoul (Acsone) (community) code review and test Needs Fixing
Naresh(OpenERP) (community) Approve
Review via email: mp+157803@code.launchpad.net

Description of the change

Hello Sir,

[FIX]account_payment: Page not refresh when select invoices into the payment Order.

Steps:
1. Install account_payment module.
2. Create a payment Order and select invoices to pay using button "Select Invoices to pay".
3. Page will not refersh when you selected the invoices, Where by refershing the web page you can see the invoices into the Order.

This branch fixes this issue. Kindly review the branch and please share your views on it.

Thanks & Regards,
Somesh Khare

To post a comment you must log in.
Revision history for this message
Naresh(OpenERP) (nch-openerp) :
review: Approve
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

may be web should reload when ir.actions.act_window_close

Revision history for this message
Stéphane Bidoul (Acsone) (sbi) wrote :

Hello,

IMHO, this fix is not appropriate. In some tests it completely reloaded the page, while in others, I believe it did nothing.

Moreover, a similar wizard to import invoices in bank statements does not completely refresh the page (only the list with statement lines is refreshed), which makes me belive the proper fix must be something else.

Best regards,

-sbi

review: Needs Fixing (code review and test)
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hi Stephane,

Absolutely right ! This needs to be fixed from web itself, web should reload when it finishes ir.actions.act_window_close action.

Thanks,
Naresh

Unmerged revisions

8999. By Somesh Khare

[FIX]account_payment: Page not refresh when select invoices into the payment Order (Case: ref 590717)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account_payment/wizard/account_payment_order.py'
2--- account_payment/wizard/account_payment_order.py 2012-12-06 14:56:32 +0000
3+++ account_payment/wizard/account_payment_order.py 2013-04-09 06:41:22 +0000
4@@ -90,7 +90,7 @@
5 'date': date_to_pay,
6 'currency': (line.invoice and line.invoice.currency_id.id) or line.journal_id.currency.id or line.journal_id.company_id.currency_id.id,
7 }, context=context)
8- return {'type': 'ir.actions.act_window_close'}
9+ return {'type': 'ir.actions.client', 'tag': 'reload',}
10
11 def search_entries(self, cr, uid, ids, context=None):
12 line_obj = self.pool.get('account.move.line')