[account] Missing date on fiscalyear clousure
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.
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.
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
Related branches
- Raphael Collet (OpenERP) (community): Approve
- Meera Trambadia (OpenERP) (community): Approve
-
Diff: 65 lines (+7/-7)1 file modifiedaccount/wizard/account_fiscalyear_close.py (+7/-7)
Changed in openobject-addons: | |
status: | New → Confirmed |
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 |
tags: | added: maintenance |
Hello hbto(humbertoar ocha),
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