← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 724788] [NEW] res_groups_name _unique in module_email_template

 

Public bug reported:

In version 6.1-dev

I update the code and modules at the start of my server and gave me this
traceback. I drop that record manually because this is a trunk version
and maybe it could be caused because marketing was installed before
update but I got this traceback again.

[2011-02-25 09:10:23,627][informatica] ERROR:db.cursor:bad query: insert into "res_groups" (id,"name",create_uid,create_date) values (35,E'Marketing / User',1,now())
Traceback (most recent call last):
  File "/home/amosoviedo/openerp6-trunk/openobject-server/openerp/sql_db.py", line 131, in execute
    res = self._obj.execute(query, params)
IntegrityError: llave duplicada viola restricción de unicidad «res_groups_name_uniq»

[2011-02-25 09:10:23,628][informatica] ERROR:tools.convert.xml_import:Parse error in /home/amosoviedo/openerp6-trunk/openobject-addons/email_template/security/email_template_security.xml:4: 
<record id="base.res_groups_email_template_admin" model="res.groups">
            <field name="name">Marketing / User</field>
        </record>
Traceback (most recent call last):
  File "/home/amosoviedo/openerp6-trunk/openobject-server/openerp/tools/convert.py", line 866, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/home/amosoviedo/openerp6-trunk/openobject-server/openerp/tools/convert.py", line 833, in _tag_record
    id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
  File "/home/amosoviedo/openerp6-trunk/openobject-server/openerp/addons/base/ir/ir_model.py", line 686, in _update
    res_id = model_obj.create(cr, uid, values, context=context)
  File "/home/amosoviedo/openerp6-trunk/openobject-server/openerp/addons/base/res/res_user.py", line 68, in create
    gid = super(groups, self).create(cr, uid, vals, context=context)
  File "/home/amosoviedo/openerp6-trunk/openobject-server/openerp/osv/orm.py", line 3629, in create
    cr.execute('insert into "'+self._table+'" (id'+upd0+") values ("+str(id_new)+upd1+')', tuple(upd2))
  File "/home/amosoviedo/openerp6-trunk/openobject-server/openerp/sql_db.py", line 78, in wrapper
    return f(self, *args, **kwargs)
  File "/home/amosoviedo/openerp6-trunk/openobject-server/openerp/sql_db.py", line 131, in execute
    res = self._obj.execute(query, params)
IntegrityError: llave duplicada viola restricción de unicidad «res_groups_name_uniq»

Thanks

** Affects: openobject-addons
     Importance: Undecided
         Status: New

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

Title:
  res_groups_name _unique in module_email_template

Status in OpenERP Modules (addons):
  New

Bug description:
  In version 6.1-dev

  I update the code and modules at the start of my server and gave me
  this traceback. I drop that record manually because this is a trunk
  version and maybe it could be caused because marketing was installed
  before update but I got this traceback again.

  [2011-02-25 09:10:23,627][informatica] ERROR:db.cursor:bad query: insert into "res_groups" (id,"name",create_uid,create_date) values (35,E'Marketing / User',1,now())
  Traceback (most recent call last):
    File "/home/amosoviedo/openerp6-trunk/openobject-server/openerp/sql_db.py", line 131, in execute
      res = self._obj.execute(query, params)
  IntegrityError: llave duplicada viola restricción de unicidad «res_groups_name_uniq»

  [2011-02-25 09:10:23,628][informatica] ERROR:tools.convert.xml_import:Parse error in /home/amosoviedo/openerp6-trunk/openobject-addons/email_template/security/email_template_security.xml:4: 
  <record id="base.res_groups_email_template_admin" model="res.groups">
              <field name="name">Marketing / User</field>
          </record>
  Traceback (most recent call last):
    File "/home/amosoviedo/openerp6-trunk/openobject-server/openerp/tools/convert.py", line 866, in parse
      self._tags[rec.tag](self.cr, rec, n)
    File "/home/amosoviedo/openerp6-trunk/openobject-server/openerp/tools/convert.py", line 833, in _tag_record
      id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
    File "/home/amosoviedo/openerp6-trunk/openobject-server/openerp/addons/base/ir/ir_model.py", line 686, in _update
      res_id = model_obj.create(cr, uid, values, context=context)
    File "/home/amosoviedo/openerp6-trunk/openobject-server/openerp/addons/base/res/res_user.py", line 68, in create
      gid = super(groups, self).create(cr, uid, vals, context=context)
    File "/home/amosoviedo/openerp6-trunk/openobject-server/openerp/osv/orm.py", line 3629, in create
      cr.execute('insert into "'+self._table+'" (id'+upd0+") values ("+str(id_new)+upd1+')', tuple(upd2))
    File "/home/amosoviedo/openerp6-trunk/openobject-server/openerp/sql_db.py", line 78, in wrapper
      return f(self, *args, **kwargs)
    File "/home/amosoviedo/openerp6-trunk/openobject-server/openerp/sql_db.py", line 131, in execute
      res = self._obj.execute(query, params)
  IntegrityError: llave duplicada viola restricción de unicidad «res_groups_name_uniq»

  Thanks



Follow ups

References