← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 689671] Re: [6.0-rc1] accounting, error when creating new database

 

** Changed in: openobject-addons
       Status: Confirmed => In Progress

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

Title:
  [6.0-rc1] accounting, error when creating new database

Status in OpenObject Addons Modules:
  In Progress

Bug description:
  Hello all,

>From a fresh installation, I get the following error.

I saw that this error comes if, when choosing the accounting, I change the number (for the account numbers) from 6 to 4

[2010-12-13 14:53:54,177][mwp_11] DEBUG:translate:translation went wrong for string 'ECNJ'
[2010-12-13 14:53:54,193][mwp_11] ERROR:db.cursor:bad query: insert into "account_account"                               (id,"code","name","parent_id","company_id","user_type","currency_id","currency_mode","activ                              e","type","reconcile",create_uid,create_date) values (1494,E'3401',E'Current',648,1,29,NULL                              ,E'current',E'True',E'other',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 « acco                              unt_account_code_company_uniq »

[2010-12-13 14:53:54,194][mwp_11] DEBUG_RPC:exception:u"'object_proxy' object has no attribute '_sql_error'"
[2010-12-13 14:53:54,194][mwp_11] DEBUG:web-services:netrpc: rpc-dispatching exception
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/netrpc_server.py", line 70, in run
    result = self.dispatch(msg[0], msg[1], msg[2:])
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 499, in dispatch
    raise OpenERPDispatcherException(e, tb_s)
OpenERPDispatcherException
[2010-12-13 14:53:54,198][?] DEBUG_RPC:service:'object'
[2010-12-13 14:53:54,198][?] DEBUG_RPC:method:'execute'





References