[PS] Problem in the configuration wizard when setting the sale tax to 21%

Bug #672461 reported by Harmel Delphine (OpenERP)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

* Create a new database with CRM and Sale modules.
* Select the "Generic Chart Of Account" and set the sale tax to "21.00"
* Continue

The following error is reported :

"ERROR:db.cursor:bad query: insert into "account_account" (id,"note","code","reconcile","parent_id","user_type","shortcut","company_id","currency_id","currency_mode","active","type","name",create_uid,create_date) values (67,NULL,E'0',E'False',NULL,21,NULL,1,NULL,E'current',E'True',E'view',E'OpenERP S.A.',1,now())
Traceback (most recent call last):
  File "/home/openerp/trunk/server/bin/sql_db.py", line 122, 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 »"

Tags: profserv
affects: openobject-doc → openerp-server
affects: openerp-server → openobject-server
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Delphine,

This is not an error, but just a warning getting popped up as 'The code of the account must be unique per company !'.

This is a warning for end user who is trying to create a chart of account for X company,but this is already created. e.g. chart of account of belgium for OpenERP SA will not be allowed.

Thanks.

Changed in openobject-server:
status: New → Invalid
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

re-filing under addons

affects: openobject-server → openobject-addons
Changed in openobject-addons:
status: Invalid → New
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

err, LP changed the status too, reverting it

Changed in openobject-addons:
status: New → Invalid
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Delphine, you can't install multiple charts of account for the same company, are you sure you did not try to do that?
Maybe you had installed one previously and forgot about it.. that's what as Jay says, the warning is correct.

The steps you describe do not trigger the error for me (it used to be the case a long time ago, are you sure you have the latest trunk too?)

Thanks!

summary: - Problem in the configuration wizard when setting the sale tax to 21%
+ [PS] Problem in the configuration wizard when setting the sale tax to
+ 21%
tags: added: profserv
Revision history for this message
Harmel Delphine (OpenERP) (dha-openerp) wrote :

re-tested and seems ok. Thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.