Chris, thank you for the patch, it was a good start. One small mistake: it was passing the company_id browse_record to the search domain instead of its ID, causing another error downstream (might not have been the case in 6.1, I did not double-check). This was fixed and the issue should be solved after the corrected revision, in trunk[1].
Thanks a lot for reporting this bug and providing a fix! PS: This fix was applied in trunk for the upcoming OpenERP 7.0, applying our bug management policy. See [2] for more details. [1] trunk addons revision 8009 rev-id: [email protected] [2] http://doc.openerp.com/v6.1/contribute/11_bug_tracker.html#bug-management-policy ** Changed in: openobject-addons Status: Fix Committed => Fix Released ** Changed in: openobject-addons Milestone: None => 7.0 -- You received this bug notification because you are a member of OpenERP Indian Team, which is subscribed to OpenERP Addons. https://bugs.launchpad.net/bugs/1018591 Title: Aged Partner Balance Report chooses FY for wrong company Status in OpenERP Addons (modules): Fix Released Bug description: Affected version: 6.1 The aged partner balance report does not select the correct company's fiscal year based on the selected CoA and date, and provides no widget to work around the problem. When the report is run, this produces the following error: ValidationError: The fiscalyear, periods or chart of account chosen have to belong to the same company. The attached patch fixes alters _get_fiscalyear to consider only FYs for the correct company. To manage notifications about this bug go to: https://bugs.launchpad.net/openobject-addons/+bug/1018591/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~openerp-india Post to : [email protected] Unsubscribe : https://launchpad.net/~openerp-india More help : https://help.launchpad.net/ListHelp

