Aged Partner Balance Report chooses FY for wrong company

Bug #1018591 reported by Chris Forbes
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 3

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.

Related branches

Revision history for this message
Chris Forbes (chrisf-ijw) wrote :
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Saurang Suthar(OpenERP) (ssu-openerp) wrote :

Hello Chris Forbes,

We have fixed the problem in lp:~openerp-dev/openobject-addons/trunk-bug-1018591-ssu branch, It will be merged soon in lp:openobject-addons.

Revision No: 7984
Revision ID: <email address hidden>

Thanks for your contribution.
Saurang Suthar

Changed in openobject-addons:
status: Confirmed → In Progress
Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

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 address hidden>
[2] http://doc.openerp.com/v6.1/contribute/11_bug_tracker.html#bug-management-policy

Changed in openobject-addons:
milestone: none → 7.0
status: Fix Committed → Fix Released
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Chris, I forgot to mention that your patch was initially merged at revision 8001, and credited to you:
   http://bazaar.launchpad.net/~openerp/openobject-addons/trunk/revision/7983.1.1

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.