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:
data['ids']=[data['form'].get('chart_account_id',False)]
Most other reports seem to set data['ids'] to active_ids instead:
data['ids']=context.get('active_ids', [])
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?