Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo v8 Mass Mailing installation Fails

Tom Stage
on 8/11/15, 5:29 AM 519 views

Hi All

I have Odoo v8 installed on a CentOS 7 system, and i followed the instructions from the here: http://linoxide.com/linux-how-to/setup-openerp-odoo-centos-7/

Now I am trying to install mass mailing from the Local Modules, but this fails with the following error:

Traceback (most recent call last):

File "/usr/lib/python2.7/site-packages/openerp/http.py", line 537, in _handle_exception

return super(JsonRequest, self)._handle_exception(exception)

File "/usr/lib/python2.7/site-packages/openerp/http.py", line 574, in dispatch

result = self._call_function(**self.params)

File "/usr/lib/python2.7/site-packages/openerp/http.py", line 310, in _call_function

return checked_call(self.db, *args, **kwargs)

File "/usr/lib/python2.7/site-packages/openerp/service/model.py", line 113, in wrapper

return f(dbname, *args, **kwargs)

File "/usr/lib/python2.7/site-packages/openerp/http.py", line 307, in checked_call

return self.endpoint(*a, **kw)

File "/usr/lib/python2.7/site-packages/openerp/http.py", line 803, in __call__

return self.method(*args, **kw)

File "/usr/lib/python2.7/site-packages/openerp/http.py", line 403, in response_wrap

response = f(*args, **kw)

File "/usr/lib/python2.7/site-packages/openerp/addons/web/controllers/main.py", line 948, in call_button

action = self._call_kw(model, method, args, {})

File "/usr/lib/python2.7/site-packages/openerp/addons/web/controllers/main.py", line 936, in _call_kw

return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)

File "/usr/lib/python2.7/site-packages/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/usr/lib/python2.7/site-packages/openerp/addons/base/module/module.py", line 446, in button_immediate_install

return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)

File "/usr/lib/python2.7/site-packages/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/usr/lib/python2.7/site-packages/openerp/addons/base/module/module.py", line 494, in _button_immediate_function

registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)

File "/usr/lib/python2.7/site-packages/openerp/modules/registry.py", line 370, in new

openerp.modules.load_modules(registry._db, force_demo, status, update_module)

File "/usr/lib/python2.7/site-packages/openerp/modules/loading.py", line 355, in load_modules

loaded_modules, update_module)

File "/usr/lib/python2.7/site-packages/openerp/modules/loading.py", line 255, in load_marked_modules

loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)

File "/usr/lib/python2.7/site-packages/openerp/modules/loading.py", line 176, in load_module_graph

_load_data(cr, module_name, idref, mode, kind='data')

File "/usr/lib/python2.7/site-packages/openerp/modules/loading.py", line 118, in _load_data

tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)

File "/usr/lib/python2.7/site-packages/openerp/tools/convert.py", line 901, in convert_file

convert_xml_import(cr, module, fp, idref, mode, noupdate, report)

File "/usr/lib/python2.7/site-packages/openerp/tools/convert.py", line 987, in convert_xml_import

obj.parse(doc.getroot(), mode=mode)

File "/usr/lib/python2.7/site-packages/openerp/tools/convert.py", line 853, in parse

self._tags[rec.tag](self.cr, rec, n, mode=mode)

File "/usr/lib/python2.7/site-packages/openerp/tools/convert.py", line 763, in _tag_record

id = self.pool['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 "/usr/lib/python2.7/site-packages/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/usr/lib/python2.7/site-packages/openerp/addons/base/ir/ir_model.py", line 1077, in _update

res_id = model_obj.create(cr, uid, values, context=context)

File "/usr/lib/python2.7/site-packages/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/usr/lib/python2.7/site-packages/openerp/api.py", line 336, in old_api

result = method(recs, *args, **kwargs)

File "/usr/lib/python2.7/site-packages/openerp/models.py", line 4077, in create

record = self.browse(self._create(old_vals))

File "/usr/lib/python2.7/site-packages/openerp/api.py", line 239, in wrapper

return new_api(self, *args, **kwargs)

File "/usr/lib/python2.7/site-packages/openerp/api.py", line 463, in new_api

result = method(self._model, cr, uid, *args, **kwargs)

File "/usr/lib/python2.7/site-packages/openerp/models.py", line 4215, in _create

tuple([u[2] for u in updates if len(u) > 2])

File "/usr/lib/python2.7/site-packages/openerp/sql_db.py", line 158, in wrapper

return f(self, *args, **kwargs)

File "/usr/lib/python2.7/site-packages/openerp/sql_db.py", line 234, in execute

res = self._obj.execute(query, params)

ParseError: "duplicate key value violates unique constraint "ir_config_parameter_key_uniq"

DETAIL: Key (key)=(mail.bounce.alias) already exists.

" while parsing /usr/lib/python2.7/site-packages/openerp/addons/mass_mailing/data/mail_data.xml:6, near

<record id="icp_mail_bounce_alias" model="ir.config_parameter">

<field name="key">mail.bounce.alias</field>

<field name="value">bounce</field>


How can i fix this?


Tom stage

Tom Stage
On 8/12/15, 7:08 AM

Hi All

I somewhat solved this on my own.

I cleared all the data from the DB and started over!


Tom Stage

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 8/11/15, 5:29 AM
Seen: 519 times
Last updated: 8/12/15, 7:08 AM