Merge lp:~openerp-dev/openobject-addons/6.1-opw-575460-pso into lp:openobject-addons/6.1

Proposed by Priyesh (OpenERP)
Status: Approved
Approved by: Vinay Rana (OpenERP)
Approved revision: 6829
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-575460-pso
Merge into: lp:openobject-addons/6.1
Diff against target: 14 lines (+4/-0)
1 file modified
account/account.py (+4/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-575460-pso
Reviewer Review Type Date Requested Status
Vinay Rana (OpenERP) (community) Approve
Olivier Dony (Odoo) Pending
Review via email: mp+108675@code.launchpad.net

Description of the change

Hello,

To reproduce the issue:

Install point_of_sale module.
Go to the Accounting/Configuration/Financial Accounting/Journals/Journals.
Open the Bank statements.

It will raise an error like this:
NotImplementedError: Iteration is not allowed on browse_record(account.journal, 15)

I fixed this issue. Kindly review the branch and let me know your inputs on it.

Regards,
Priyesh

To post a comment you must log in.
6829. By Priyesh (OpenERP)

[IMP] account: Added one more condition on ids(case:575460)

Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) wrote :

The problem is happen with gtk client only, the propose patch will fix the issue.
As the ids should be check before passing this in to browse method directly.

review: Approve
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello,

This bug was qualified as Already Fixed on Trunk (means that it was already fixed and merged in Trunk). If this Merge Proposal could not be merged in v6.1 at the release of v7.0, it will be closed.

Thanks,
Naresh Soni

Unmerged revisions

6829. By Priyesh (OpenERP)

[IMP] account: Added one more condition on ids(case:575460)

6828. By Priyesh (OpenERP)

[FIX] account: Checked type of ids and set it as list for future process(case:575460)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'account/account.py'
--- account/account.py 2012-03-22 12:24:19 +0000
+++ account/account.py 2012-06-05 06:21:21 +0000
@@ -824,6 +824,10 @@
824824
825 @return: Returns a list of tupples containing id, name825 @return: Returns a list of tupples containing id, name
826 """826 """
827 if not ids:
828 return []
829 if isinstance(ids, (int, long)):
830 ids = [ids]
827 result = self.browse(cr, user, ids, context=context)831 result = self.browse(cr, user, ids, context=context)
828 res = []832 res = []
829 for rs in result:833 for rs in result: