← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 697139] Re: [6.0-rc2] Account problem with Swiss PCG

 

FYI, l10n_ch is not merged yet... We are still waiting for OpenERP to do
it for us.

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

Title:
  [6.0-rc2] Account problem with Swiss PCG

Status in OpenObject Addons Modules:
  New

Bug description:
  Hello,
With last revisions, there's still a problem when trying to create the swiss accounting. After having choosen the swiss PCG and the taxes, I get the following error : (I set the number of value for the account numbers to  4 ) !

Avertissement : Le code du compte doit être unique par société.

In my trace file, here's the problem :

[2011-01-04 10:21:07,970][mwp_01] INFO:res.config:getting next <base.ir.ir_actions.ir_actions_todo object at 0xcae69ac>
[2011-01-04 10:21:17,867][mwp_01] INFO:data:Computing parent left and right for table account_account...
[2011-01-04 10:21:20,032][mwp_01] ERROR:db.cursor:bad query: insert into "account_account" (id,"code","name","parent_id","company_id","user_type","currency_id","currency_mode","active","type","reconcile",create_uid,create_date) values (1497,E'3401',E'Current',651,1,29,NULL,E'current',E'True',E'liquidity',E'True',1,now())
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/sql_db.py", line 129, in execute
    res = self._obj.execute(query, params)
IntegrityError: ERREUR:  la valeur d'une clé dupliquée rompt la contrainte unique « account_account_code_company_uniq »





References