Merge lp:~openerp-dev/openobject-addons/trunk-bug-880844-mdi into lp:openobject-addons
Proposed by
DJ Patel (OpenERP)
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 6640 | ||||
Proposed branch: | lp:~openerp-dev/openobject-addons/trunk-bug-880844-mdi | ||||
Merge into: | lp:openobject-addons | ||||
Diff against target: |
87 lines (+26/-11) 1 file modified
account/project/report/cost_ledger.py (+26/-11) |
||||
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-880844-mdi | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Raphael Collet (OpenERP) (community) | Needs Resubmitting | ||
DJ Patel (OpenERP) (community) | Needs Resubmitting | ||
Purnendu Singh (OpenERP) (community) | Needs Fixing | ||
qdp (OpenERP) | Pending | ||
Review via email:
|
Description of the change
Hello Sir,
I have fix the issue: https:/
Thanks and Regards,
Divyesh Makwana(MDI)
To post a comment you must log in.
hello Divyesh,
Patch is not good.
here you are passing 'account_id' in _get_account method then why you need to search that id again!!!
+ def _get_rec( account_ id): get('account. analytic. account' ) obj.search( self.cr, self.uid, [('id', '=', account_id)]) obj.browse( self.cr, self.uid, analytic_ search_ ids)
12 + analytic_obj = self.pool.
13 + analytic_search_ids = analytic_
14 + analytic_datas = analytic_
you can direct get account like obj.browse( self.cr, self.uid, [account_id]):
-for account in analytic_datas:
+for account in analytic_
There is lots of thing to change in your patch
1) result list contains duplicate entries.
2) Unnecessary loops for a single account. etc
Please check it properly
Thanks,
Purnendu Singh