Skip to Content
Menu
This question has been flagged
1379 Views

There is error when I install e-commerce module:

Error:
Odoo Server Error

Traceback (most recent call last):
File "/opt/odoo/odoo11/odoo/tools/convert.py", line 744, in parse
self._tags[rec.tag](rec, de, mode=mode)
File "/opt/odoo/odoo11/odoo/tools/convert.py", line 654, in _tag_record
id = self.env(context=rec_context)['ir.model.data']._update(rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode)
File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_model.py", line 1488, in _update
record = record.create(values)
File "/opt/odoo/odoo11/addons/product/models/product.py", line 310, in create
product = super(ProductProduct, self.with_context(create_product_product=True)).create(vals)
File "/opt/odoo/odoo11/addons/mail/models/mail_thread.py", line 236, in create
thread = super(MailThread, self).create(values)
File "/opt/odoo/odoo11/odoo/models.py", line 3372, in create
record = self.browse(self._create(old_vals))
File "/opt/odoo/odoo11/odoo/models.py", line 3429, in _create
parent_id = self.env[parent_model].create(parent_vals).id
File "/opt/odoo/odoo11/addons/hr_expense/models/product_template.py", line 18, in create
return super(ProductTemplate, self).create(vals)
File "/opt/odoo/odoo11/addons/product/models/product_template.py", line 293, in create
template = super(ProductTemplate, self).create(vals)
File "/opt/odoo/odoo11/addons/mail/models/mail_thread.py", line 236, in create
thread = super(MailThread, self).create(values)
File "/opt/odoo/odoo11/odoo/models.py", line 3372, in create
record = self.browse(self._create(old_vals))
File "/opt/odoo/odoo11/odoo/models.py", line 3465, in _create
cr.execute(query, tuple(u[2] for u in updates if len(u) > 2))
File "/opt/odoo/odoo11/odoo/sql_db.py", line 155, in wrapper
return f(self, *args, **kwargs)
File "/opt/odoo/odoo11/odoo/sql_db.py", line 232, in execute
res = self._obj.execute(query, params)
psycopg2.IntegrityError: null value in column "name" violates not-null constraint
DETAIL: Failing row contains (81, null, 1, null, null, null, consu, f, 1, 1.00, null, null, t, t, 1, 1, 1, t, null, null, null, null, 1, 2020-02-11 13:58:56.255258, 1, 2020-02-11 13:58:56.255258, 1, 0, none, null, null, null, manual, no-message, null, no, order, receive, no-message, null, f, null, <section class="mt16 mb16 oe_dark">
<div cla..., null, 2, 2, 3, t, null, null, null, null).


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/odoo/odoo11/odoo/http.py", line 651, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo11/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/opt/odoo/odoo11/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/opt/odoo/odoo11/odoo/http.py", line 693, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/odoo11/odoo/http.py", line 342, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/odoo11/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/odoo11/odoo/http.py", line 335, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/odoo11/odoo/http.py", line 937, in __call__
return self.method(*args, **kw)
File "/opt/odoo/odoo11/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/odoo11/addons/web/controllers/main.py", line 938, in call_button
action = self._call_kw(model, method, args, {})
File "/opt/odoo/odoo11/addons/web/controllers/main.py", line 926, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/odoo11/odoo/api.py", line 689, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "/opt/odoo/odoo11/odoo/api.py", line 680, in call_kw_multi
result = method(recs, *args, **kwargs)
File "<decorator-gen-42>", line 2, in button_immediate_install
File "/opt/odoo/odoo11/odoo/addons/base/module/module.py", line 71, in check_and_log
return method(self, *args, **kwargs)
File "/opt/odoo/odoo11/odoo/addons/base/module/module.py", line 449, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/opt/odoo/odoo11/odoo/addons/base/module/module.py", line 542, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/opt/odoo/odoo11/odoo/modules/registry.py", line 85, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/opt/odoo/odoo11/odoo/modules/loading.py", line 380, in load_modules
loaded_modules, update_module, models_to_check)
File "/opt/odoo/odoo11/odoo/modules/loading.py", line 274, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "/opt/odoo/odoo11/odoo/modules/loading.py", line 184, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='demo')
File "/opt/odoo/odoo11/odoo/modules/loading.py", line 95, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "/opt/odoo/odoo11/odoo/tools/convert.py", line 791, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/opt/odoo/odoo11/odoo/tools/convert.py", line 852, in convert_xml_import
obj.parse(doc.getroot(), mode=mode)
File "/opt/odoo/odoo11/odoo/tools/convert.py", line 751, in parse
exc_info[2]
File "/opt/odoo/odoo11/odoo/tools/pycompat.py", line 86, in reraise
raise value.with_traceback(tb)
File "/opt/odoo/odoo11/odoo/tools/convert.py", line 744, in parse
self._tags[rec.tag](rec, de, mode=mode)
File "/opt/odoo/odoo11/odoo/tools/convert.py", line 654, in _tag_record
id = self.env(context=rec_context)['ir.model.data']._update(rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode)
File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_model.py", line 1488, in _update
record = record.create(values)
File "/opt/odoo/odoo11/addons/product/models/product.py", line 310, in create
product = super(ProductProduct, self.with_context(create_product_product=True)).create(vals)
File "/opt/odoo/odoo11/addons/mail/models/mail_thread.py", line 236, in create
thread = super(MailThread, self).create(values)
File "/opt/odoo/odoo11/odoo/models.py", line 3372, in create
record = self.browse(self._create(old_vals))
File "/opt/odoo/odoo11/odoo/models.py", line 3429, in _create
parent_id = self.env[parent_model].create(parent_vals).id
File "/opt/odoo/odoo11/addons/hr_expense/models/product_template.py", line 18, in create
return super(ProductTemplate, self).create(vals)
File "/opt/odoo/odoo11/addons/product/models/product_template.py", line 293, in create
template = super(ProductTemplate, self).create(vals)
File "/opt/odoo/odoo11/addons/mail/models/mail_thread.py", line 236, in create
thread = super(MailThread, self).create(values)
File "/opt/odoo/odoo11/odoo/models.py", line 3372, in create
record = self.browse(self._create(old_vals))
File "/opt/odoo/odoo11/odoo/models.py", line 3465, in _create
cr.execute(query, tuple(u[2] for u in updates if len(u) > 2))
File "/opt/odoo/odoo11/odoo/sql_db.py", line 155, in wrapper
return f(self, *args, **kwargs)
File "/opt/odoo/odoo11/odoo/sql_db.py", line 232, in execute
res = self._obj.execute(query, params)
odoo.tools.convert.ParseError: "null value in column "name" violates not-null constraint
DETAIL: Failing row contains (81, null, 1, null, null, null, consu, f, 1, 1.00, null, null, t, t, 1, 1, 1, t, null, null, null, null, 1, 2020-02-11 13:58:56.255258, 1, 2020-02-11 13:58:56.255258, 1, 0, none, null, null, null, manual, no-message, null, no, order, receive, no-message, null, f, null, <section class="mt16 mb16 oe_dark">
<div cla..., null, 2, 2, 3, t, null, null, null, null).
" while parsing /opt/odoo/odoo11/addons/website_sale/data/demo.xml:9, near
<record id="product.product_product_4" model="product.product">
<field name="website_published" eval="True"/>
<field name="website_size_x">2</field>
<field name="website_size_y">2</field>
<field name="website_sequence">3</field>
<field name="website_style_ids" eval="[(6,0,[ref('website_sale.image_full')])]"/>
<field name="website_description" type="html">
<section class="mt16 mb16 oe_dark">
<div class="container">
<div class="row">
<div class="col-md-5 col-md-offset-1 mt64">
<h3>Why you'll love an iPad.</h3>
<p>
Right from the start, there’s a lot to love about
iPad. It’s simple yet powerful. Thin and light yet
full-featured. It can do just about everything and
be just about anything.
</p><p>
And because it’s so easy to use, it’s easy to love.
</p>
</div>
<div class="col-md-5 mt16 mb16">
<img class="img img-responsive" src="/website_sale/static/src/img/ipad_why.png"/>
</div>
</div>
</div>
</section>
<section class="mt16">
<div class="container">
<div class="row">
<div class="col-md-5 col-md-offset-1">
<img class="img img-responsive" src="/website_sale/static/src/img/ipad_experience.png"/>
</div>
<div class="col-md-6 mt64">
<h3>The full iPad experience.</h3>
<h4 class="small">There is less of it, but no less to it.</h4>
<p>
Everything you love about iPad — the beautiful
screen, fast and fluid performance, FaceTime and
iSight cameras, thousands of amazing apps, 10-hour
battery life* — is everything you’ll love about
iPad mini, too. And you can hold it in one hand.
</p>
</div>
</div>
</div>
</section>
</field>
</record>


----

There is error when I install project module: 

E: Odoo Server Error  Traceback (most recent call last): File "/opt/odoo/odoo11/odoo/tools/convert.py", line 744, in parse self._tags[rec.tag](rec, de, mode=mode) File "/opt/odoo/odoo11/odoo/tools/convert.py", line 654, in _tag_record id = self.env(context=rec_context)['ir.model.data']._update(rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode) File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_model.py", line 1488, in _update record = record.create(values) File "/opt/odoo/odoo11/addons/sales_team/models/res_users.py", line 17, in create user = super(ResUsers, self).create(vals) File "/opt/odoo/odoo11/addons/auth_signup/models/res_users.py", line 154, in create user = super(ResUsers, self).create(values) File "/opt/odoo/odoo11/addons/mail/models/res_users.py", line 55, in create raise exceptions.RedirectWarning(msg, action.id, _('Go to the configuration panel')) odoo.exceptions.RedirectWarning: ('你不能在这里创建一个新的用户。\n 要创建一个新用户,请转到配置面板。', 65, '前往配置面板') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/odoo/odoo11/odoo/http.py", line 651, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/opt/odoo/odoo11/odoo/http.py", line 310, in _handle_exception raise pycompat.reraise(type(exception), exception, sys.exc_info()[2]) File "/opt/odoo/odoo11/odoo/tools/pycompat.py", line 87, in reraise raise value File "/opt/odoo/odoo11/odoo/http.py", line 693, in dispatch result = self._call_function(**self.params) File "/opt/odoo/odoo11/odoo/http.py", line 342, in _call_function return checked_call(self.db, *args, **kwargs) File "/opt/odoo/odoo11/odoo/service/model.py", line 97, in wrapper return f(dbname, *args, **kwargs) File "/opt/odoo/odoo11/odoo/http.py", line 335, in checked_call result = self.endpoint(*a, **kw) File "/opt/odoo/odoo11/odoo/http.py", line 937, in __call__ return self.method(*args, **kw) File "/opt/odoo/odoo11/odoo/http.py", line 515, in response_wrap response = f(*args, **kw) File "/opt/odoo/odoo11/addons/web/controllers/main.py", line 938, in call_button action = self._call_kw(model, method, args, {}) File "/opt/odoo/odoo11/addons/web/controllers/main.py", line 926, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/opt/odoo/odoo11/odoo/api.py", line 689, in call_kw return call_kw_multi(method, model, args, kwargs) File "/opt/odoo/odoo11/odoo/api.py", line 680, in call_kw_multi result = method(recs, *args, **kwargs) File "<decorator-gen-42>", line 2, in button_immediate_install File "/opt/odoo/odoo11/odoo/addons/base/module/module.py", line 71, in check_and_log return method(self, *args, **kwargs) File "/opt/odoo/odoo11/odoo/addons/base/module/module.py", line 449, in button_immediate_install return self._button_immediate_function(type(self).button_install) File "/opt/odoo/odoo11/odoo/addons/base/module/module.py", line 542, in _button_immediate_function modules.registry.Registry.new(self._cr.dbname, update_module=True) File "/opt/odoo/odoo11/odoo/modules/registry.py", line 85, in new odoo.modules.load_modules(registry._db, force_demo, status, update_module) File "/opt/odoo/odoo11/odoo/modules/loading.py", line 380, in load_modules loaded_modules, update_module, models_to_check) File "/opt/odoo/odoo11/odoo/modules/loading.py", line 274, in load_marked_modules perform_checks=perform_checks, models_to_check=models_to_check File "/opt/odoo/odoo11/odoo/modules/loading.py", line 184, in load_module_graph _load_data(cr, module_name, idref, mode, kind='demo') File "/opt/odoo/odoo11/odoo/modules/loading.py", line 95, in _load_data tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report) File "/opt/odoo/odoo11/odoo/tools/convert.py", line 791, in convert_file convert_xml_import(cr, module, fp, idref, mode, noupdate, report) File "/opt/odoo/odoo11/odoo/tools/convert.py", line 852, in convert_xml_import obj.parse(doc.getroot(), mode=mode) File "/opt/odoo/odoo11/odoo/tools/convert.py", line 741, in parse self.parse(rec, mode) File "/opt/odoo/odoo11/odoo/tools/convert.py", line 751, in parse exc_info[2] File "/opt/odoo/odoo11/odoo/tools/pycompat.py", line 86, in reraise raise value.with_traceback(tb) File "/opt/odoo/odoo11/odoo/tools/convert.py", line 744, in parse self._tags[rec.tag](rec, de, mode=mode) File "/opt/odoo/odoo11/odoo/tools/convert.py", line 654, in _tag_record id = self.env(context=rec_context)['ir.model.data']._update(rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode) File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_model.py", line 1488, in _update record = record.create(values) File "/opt/odoo/odoo11/addons/sales_team/models/res_users.py", line 17, in create user = super(ResUsers, self).create(vals) File "/opt/odoo/odoo11/addons/auth_signup/models/res_users.py", line 154, in create user = super(ResUsers, self).create(values) File "/opt/odoo/odoo11/addons/mail/models/res_users.py", line 55, in create raise exceptions.RedirectWarning(msg, action.id, _('Go to the configuration panel')) odoo.tools.convert.ParseError: "你不能在这里创建一个新的用户。 要创建一个新用户,请转到配置面板。 65 前往配置面板" while parsing /opt/odoo/odoo11/addons/project/data/project_demo.xml:6, near <record id="base.user_demo" model="res.users"> <field name="groups_id" eval="[(4, ref('group_project_manager'))]"/> </record> rror

Avatar
Discard