← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 876310] Re: unicity constraint while installing the generic chart of account

 

** Tags added: rc1

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

Title:
  unicity constraint while installing the generic chart of account

Status in OpenERP Addons (modules):
  Confirmed

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"

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/876310/+subscriptions


References