credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #00169
[Bug 894707] Re: [trunk] Create Monthly Periods : unique key violation on Opening Periods
Hello Guewen Baconnier,
Thanks for reporting and also for giving the suggestion. The solution
for this bug is proposed in the branch : https://code.launchpad.net
/~openerp-dev/openobject-addons/trunk-bug-894707-mdi/
with following Revision ID and Number.
Revision ID : mdi@xxxxxxxxxxx-20111128050938-5e2vizusnvq8zbth
Revision Number :5788
Thanks and Regards,
Divyesh Makwana(MDI)
** Changed in: openobject-addons
Status: In Progress => Fix Committed
--
You received this bug notification because you are a member of OpenERP
Framework Experts, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/894707
Title:
[trunk] Create Monthly Periods : unique key violation on Opening
Periods
Status in OpenERP Addons (modules):
Fix Committed
Bug description:
Hello,
On 6.1, in the account module.
On the fiscal year form, there is a button to generate monthly periods en 3 months periods.
They generate 1 period per month or per 3 months plus a opening period.
The name of periods is unique per company.
The opening period is created with the name "Opening Period".
So it works one year, and no more when you want to create a new fiscal year again.
IntegrityError: duplicate key value violates unique constraint "account_period_name_company_uniq"
DETAIL: Key (name, company_id)=(Opening Period, 1) already exists.
Here is a patch to include the year in the period name to avoid this
issue.
Thanks
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/894707/+subscriptions
References