Public bug reported:

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

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/894707

Title:
  [trunk] Create Monthly Periods : unique key violation on Opening
  Periods

Status in OpenERP Addons (modules):
  New

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

_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help   : https://help.launchpad.net/ListHelp

Reply via email to