Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Can anyone explain what the data['ids'] field is used for in openerp reports?
I am getting some odd permission denied errors in regards to the Aged Partner Balance report. After some debugging I discovered it was trying to access a partner it didnt have permission to view using the ID of the chart of account selected for the report... I suspect the issue is caused by this line in account_report_aged_partner_balance.py, line 82:
Most other reports seem to set data['ids'] to active_ids instead:
In fact, replacing line 82 in account_report_aged_partner_balance.py with the line directly above prevents the permission errors I was getting.
Can anyone offer any kind of insight as to why the Aged Partner Balance would be setting 'ids' to the chart of account id? Also, whether my fix above would have any un-forseen consequences and break something else I am unaware of?
Hi dawn, you are true generally we pass
context.get('active_ids', ) only if the wizard is in
Trial Balance in
Accounts form view.
In wizard like this
context.get('active_ids', ) gives us the
id of the record from which we have opened the wizard.
But here in this case of
Aged Partner Balance report
context.get('active_ids', ) will give us menu id of
Aged Partner Balance wizard(Accounting/Reporting/Generic Reporting/Partners/Aged Partner Balance). So it is no use to pass
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 5/28/13, 10:38 PM|
|Seen: 1336 times|
|Last updated: 3/16/15, 8:10 AM|