[trunk] Create Monthly Periods : unique key violation on Opening Periods
Bug #894707 reported by
Guewen Baconnier @ Camptocamp
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP R&D Addons Team 3 |
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_
DETAIL: Key (name, company_
Here is a patch to include the year in the period name to avoid this issue.
Thanks
Related branches
lp:~openerp-dev/openobject-addons/trunk-bug-894707-mdi
- Purnendu Singh (OpenERP) (community): Approve
- qdp (OpenERP): Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedaccount/account.py (+1/-1)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
milestone: | none → 6.1 |
To post a comment you must log in.
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 : <email address hidden>
Revision Number :5788
Thanks and Regards,
Divyesh Makwana(MDI)