← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

When I'm creating a new database, first, when we've to choose the 
accounting, I choose the Swiss one corrected by Camptocamp. A few screen 
later, another question is asked and there, you've no choice, you've to 
choose the Swiss PCG. By choosing a value of 4 for the account numbers, 
system hangs. If I choose a value of 6, no problems !

I'll make a complete new install to check again, but on monday.

Thanks for your help


Le 05.01.2011 16:04, Jay (OpenERP) a écrit :
> Hi Arnaud,
>
> To make sure, I just did an installation of a new DB with swiss PCG and
> it worked as expected.
>


-- 

Meilleures salutations*

**MW Programmation SA*
Arnaud Forster
Rue Charles Schäublin 2
2735 Malleray-Bévilard

Tél. (+41).032.491.65.30
Fax (+41).032.491.65.35

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

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