unicity constraint while installing the generic chart of account

Bug #876310 reported by Aline (OpenERP)
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Medium
OpenERP R&D Addons Team 3

Bug Description

in the "install chart of account" wizard, if "generic chart of account" is selected, a field appears in which you can set a tax value. If you complete this field, you got an unicity constraint in the "generate chart of account from template" wizard.

[2011-10-17 09:06:53,552][?] INFO:werkzeug:127.0.0.1 - - [17/Oct/2011 09:06:53] "POST /web/dataset/get HTTP/1.1" 200 -
[2011-10-17 09:06:53,646][?] ERROR:db.cursor:bad query: insert into "account_tax" (id,"domain","description","ref_tax_code_id","sequence","ref_base_sign","type_tax_use","base_code_id","base_sign","child_depend","include_base_amount","active","ref_base_code_id","ref_tax_sign","applicable_type","company_id","name","tax_code_id","parent_id","amount","python_compute","tax_sign","python_compute_inv","python_applicable","type","price_include",create_uid,create_date) values (4,NULL,E'TAX 20.0%',54,0,1.0,E'purchase',53,1.0,E'False',E'False',E'True',53,1.0,E'true',1,E'TAX 20.0%',54,NULL,E'0.2000',E'# price_unit
# address: res.partner.address object or False
# product: product.product object or None
# partner: res.partner object or None

result = price_unit * 0.10',1.0,E'# price_unit
# address: res.partner.address object or False
# product: product.product object or False

result = price_unit * 0.10',NULL,E'percent',E'False',1,now())
Traceback (most recent call last):
  File "/home/aline/source/server/trunk/openerp/sql_db.py", line 215, in execute
    res = self._obj.execute(query, params)
IntegrityError: duplicate key value violates unique constraint "account_tax_name_company_uniq"

Tags: rc1
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
status: New → Confirmed
Changed in openobject-addons:
importance: Low → Medium
tags: added: rc1
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.