[account] Missing date on fiscalyear clousure

Bug #912623 reported by hbto [Vauxoo] http://www.vauxoo.com
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 3

Bug Description

[account] Missing date on fiscalyear clousure
wizard account.fiscalyear.close lacks of date
both for account.move records and account.move.line
in both cases it just takes the default values given
by those models, i.e, the day when the wizard is run,

this could lead to miscorrected account balances, if
You were to close the fiscal year 2011 at Feb/28th/2012
It will create an account.move record &
account.move.lines with both date from fiscal_year's
start_date and that of Feb/28th/2012,

If the account.journal is checked allow_date=True
with this bug this wizard will even complain because
in that date will not be in the range date of that period,

All the account.move & account.move.line records created
during this wizard IMHO should be with date == fiscalyear.start_date
as those for the account of type == 'detail'

in the next lines you could find the needed changes to accomplish
that what I have exposed,

Thanks in Advance,

Hbto

Tags: maintenance

Related branches

Revision history for this message
hbto [Vauxoo] http://www.vauxoo.com (humbertoarocha) wrote :
Changed in openobject-addons:
status: New → Confirmed
Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Jagdish Panchal (Open ERP) (jap-openerp) wrote :

Hello hbto(humbertoarocha),

Your patch seems to be correct but I have improved your patch as in one querey the period.date_start was missing.

Its been fixed in the following branch:- https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-912623-jap
Revision ID: <email address hidden>
Revision no: 6326

It will be merged soon with addons.

Thanks for your contribution.

Thanks,
jap

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Raphael Collet (OpenERP) (rco-openerp) wrote :

landed in trunk
revno: 6379 [merge]
revision-id: <email address hidden>

Changed in openobject-addons:
status: Fix Committed → Fix Released
tags: added: maintenance
Revision history for this message
hbto [Vauxoo] http://www.vauxoo.com (humbertoarocha) wrote :

Ok, +1

That is the expected behavior,

wonderfull,

Will that patch be available for v6.0.x?

Thank in Advance

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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