Tax Report chooses wrong data if both periods are not selected

Bug #1200021 reported by Dawn Richardson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Low
OpenERP R&D Addons Team 3

Bug Description

To replicate: (using version7.0-20130604)
- Create a new DB
- Install Accounting & Finance app & click through the wizard for a default chart of accounts/currency setup, keeping default values.
- Under Accounting > Configuration > Periods > Fiscal Years, create a new fiscal year for 2012 (starting 01/01/2012, ending 12/31/2012)
- Click 'Create Monthly periods' on the new fiscal year
- Create an arbitrary invoice, making sure it has some taxes attached to it AND that the date is somewhere in 2012. Validate the invoice.
- Under Reporting > Generic Reporting > Taxes > Tax Report, run the Tax Report wizard, choosing the fiscal year as '2012' and leaving periods blank.
- The system will produce a report with NO taxes visible, as it has actually selected 2013 as the fiscal year (if no period list is made, the account_tax_report.py will run a direct database statement "select id from account_fiscalyear", choosing an essentially random fiscal year, despite one being given). The expected result should be that if a fiscal year is chosen it should display tax entries from the chosen fiscal year.

Note that this also occurs if only one period is chosen, yet works if periods are chosen on either side of the invoice date.

The simple solution is that the periods should be required fields unless fiscal_year is blank. I have linked a branch with this very small fix which will greatly improve the usability of this report. It will also allow a report to be generated showing all tax owing on active periods, even if these span over multiple fiscal years, a task which is currently impossible.

Tags: report taxes

Related branches

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello,

I didn't see the fiscal year field on "Chart of Taxes" wizard, but I can see the "Period" field with help "If you do not select period it will take all open periods".

But when I don't select the period then it doesn't show the last year's open period's entry.

Thank you!

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
status: New → Confirmed
Amit Parik (amit-parik)
tags: added: report taxes
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Bharat Devnani (Open ERP) (bde-openerp) wrote :

Hello Dawn Richardson,

Thanks for reporting. This bug has been resolved in
branch : https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1200021-bde
with following:
Revision ID : <email address hidden>
Revision Number : 9029

Once reviewed by our experts it will be merged in addons soon.

Thanks & Regards,
Devnani Bharat R.

Changed in openobject-addons:
status: In Progress → Fix Committed
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.