← Back to team overview

credativ team mailing list archive

[Bug 894707] Re: [trunk] Create Monthly Periods : unique key violation on Opening Periods

 

** Changed in: openobject-addons
    Milestone: None => 6.1

-- 
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