I have developped this module but I can not run it, i keep getting this error track and no idea what it is, thanks in adcance.
Traceback (most recent call last):
File "C:\Users\Utilisateur\git\persol\odoo\openerp\http.py", line 405, in response_wrap
response = f(*args, **kw)
File "C:\Users\Utilisateur\git\persol\odoo\addons\web\controllers\main.py", line 948, in call_button
action = self._call_kw(model, method, args, {})
File "C:\Users\Utilisateur\git\persol\odoo\addons\web\controllers\main.py", line 936, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "C:\Users\Utilisateur\git\persol\odoo\openerp\api.py", line 268, in wrapper
return old_api(self, *args, **kwargs)
File "C:\Users\Utilisateur\git\persol\odoo\openerp\addons\base\module\module.py", line 447, in button_immediate_install
return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
File "C:\Users\Utilisateur\git\persol\odoo\openerp\api.py", line 268, in wrapper
return old_api(self, *args, **kwargs)
File "C:\Users\Utilisateur\git\persol\odoo\openerp\addons\base\module\module.py", line 495, in _button_immediate_function
registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
File "C:\Users\Utilisateur\git\persol\odoo\openerp\modules\registry.py", line 370, in new
openerp.modules.load_modules(registry._db, force_demo, status, update_module)
File "C:\Users\Utilisateur\git\persol\odoo\openerp\modules\loading.py", line 355, in load_modules
loaded_modules, update_module)
File "C:\Users\Utilisateur\git\persol\odoo\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 "C:\Users\Utilisateur\git\persol\odoo\openerp\modules\loading.py", line 176, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "C:\Users\Utilisateur\git\persol\odoo\openerp\modules\loading.py", line 118, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "C:\Users\Utilisateur\git\persol\odoo\openerp\tools\convert.py", line 894, in convert_file
convert_csv_import(cr, module, pathname, fp.read(), idref, mode, noupdate)
File "C:\Users\Utilisateur\git\persol\odoo\openerp\tools\convert.py", line 962, in convert_csv_import
raise Exception(_('Module loading %s failed: file %s could not be processed:\n %s') % (module, fname, warning_msg))
Exception: Module loading mgmtsystem_dysfunction failed: file mgmtsystem_dysfunction\security/ir.model.access.csv could not be processed:
Line 1 : id,"name","model_id
See the error in the last line, tells:
Line 1 : id,"name","model_id
This is because the CSV file is ill-formed. Go to such file (indicated one line above as: mgmtsystem_dysfunction\security/ir.model.access.csv) and either balance the double quotes (the last one is missing) or remove them.
Related
When I try to save any config I'm getting the following error:
Error: Odoo Server Error
ValueError: Invalid field 'recaptcha_public_key' on model 'res.config.settings'
The complete trace is the following:
Odoo Server Error
Traceback (most recent call last):
File "C:\Program Files\Odoo 14.0.20210511\server\odoo\addons\base\models\ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "C:\Program Files\Odoo 14.0.20210511\server\odoo\http.py", line 683, in dispatch
result = self._call_function(**self.params)
File "C:\Program Files\Odoo 14.0.20210511\server\odoo\http.py", line 359, in _call_function
return checked_call(self.db, *args, **kwargs)
File "C:\Program Files\Odoo 14.0.20210511\server\odoo\service\model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "C:\Program Files\Odoo 14.0.20210511\server\odoo\http.py", line 347, in checked_call
result = self.endpoint(*a, **kw)
File "C:\Program Files\Odoo 14.0.20210511\server\odoo\http.py", line 912, in __call__
return self.method(*args, **kw)
File "C:\Program Files\Odoo 14.0.20210511\server\odoo\http.py", line 531, in response_wrap
response = f(*args, **kw)
File "C:\Program Files\Odoo 14.0.20210511\server\odoo\addons\web\controllers\main.py", line 1389, in call_kw
return self._call_kw(model, method, args, kwargs)
File "C:\Program Files\Odoo 14.0.20210511\server\odoo\addons\web\controllers\main.py", line 1381, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "C:\Program Files\Odoo 14.0.20210511\server\odoo\api.py", line 394, in call_kw
result = _call_kw_model_create(method, model, args, kwargs)
File "C:\Program Files\Odoo 14.0.20210511\server\odoo\api.py", line 374, in _call_kw_model_create
result = method(recs, *args, **kwargs)
File "<decorator-gen-96>", line 2, in create
File "C:\Program Files\Odoo 14.0.20210511\server\odoo\api.py", line 323, in _model_create_single
return create(self, arg)
File "C:\Program Files\Odoo 14.0.20210511\server\odoo\addons\base\models\res_config.py", line 783, in create
return super(ResConfigSettings, self).create(values)
File "<decorator-gen-65>", line 2, in create
File "C:\Program Files\Odoo 14.0.20210511\server\odoo\api.py", line 344, in _model_create_multi
return create(self, [arg])
File "C:\Program Files\Odoo 14.0.20210511\server\odoo\addons\base\models\ir_fields.py", line 533, in create
recs = super().create(vals_list)
File "<decorator-gen-13>", line 2, in create
File "C:\Program Files\Odoo 14.0.20210511\server\odoo\api.py", line 345, in _model_create_multi
return create(self, arg)
File "C:\Program Files\Odoo 14.0.20210511\server\odoo\models.py", line 3825, in create
raise ValueError("Invalid field %r on model %r" % (key, self._name))
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Program Files\Odoo 14.0.20210511\server\odoo\http.py", line 639, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "C:\Program Files\Odoo 14.0.20210511\server\odoo\http.py", line 315, in _handle_exception
raise exception.with_traceback(None) from new_cause
ValueError: Invalid field 'recaptcha_public_key' on model 'res.config.settings'
Answer here, that's because some module was missing. search odoo source code with recaptcha_public_key we can see the module name is google_recaptcha.
In your system open Apps page, search that module and install will resolve your problem. Or you can install it by command line bellow (need restart server after that):
./odoo-bin -d <yourdbname> -i google_recaptcha
This message is simply because you try create a record and in the values passed to create it a field is filled in but isn't present in the model.
But with only this error log. I can't more help you.
Possible error:
In the file __init__.py of your folder models you don't import your file (Example : from . import config)
In the file __init__.py of your module, you don't import your folder models (from . import models)
Missing a dependence, file with this field could be in module 1 and you try to create record with this field in module 2, but no depend exist between module 1 and 2.
Problem this creation of the field.
Bad updating of module. You add the field but the don't update module. (-u your_module OR with the interface)
I was trying to upgrade a module from Odoo 13 to Odoo 14 (stock_split_picking to be exact), I found an error that I don't really understand and I can't figure how to fix it.
It's an error that happen when I want to install the module, and after hours of search on the internet, hours of just reading Odoo's code in a hope of understanding what's happening... I just can't understand where is the problem, nothing seems to be anormal from what I've read on Odoo's Documentation on their website.
Here is my error :
Odoo Server Error
Traceback (most recent call last):
File "/opt/odoo/odoo/odoo/tools/convert.py", line 677, in _tag_root
f(rec)
File "/opt/odoo/odoo/odoo/tools/convert.py", line 580, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "/opt/odoo/odoo/odoo/models.py", line 4185, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "/opt/odoo/odoo/odoo/models.py", line 4114, in _load_records_create
return self.create(values)
File "<decorator-gen-43>", line 2, in create
File "/opt/odoo/odoo/odoo/api.py", line 345, in _model_create_multi
return create(self, arg)
File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 482, in create
return super(View, self).create(vals_list)
File "<decorator-gen-65>", line 2, in create
File "/opt/odoo/odoo/odoo/api.py", line 345, in _model_create_multi
return create(self, arg)
File "/opt/odoo/odoo/odoo/addons/base/models/ir_fields.py", line 508, in create
recs = super().create(vals_list)
File "<decorator-gen-13>", line 2, in create
File "/opt/odoo/odoo/odoo/api.py", line 345, in _model_create_multi
return create(self, arg)
File "/opt/odoo/odoo/odoo/models.py", line 3875, in create
fields[0].determine_inverse(batch_recs)
File "/opt/odoo/odoo/odoo/fields.py", line 1128, in determine_inverse
getattr(records, self.inverse)()
File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 300, in _inverse_arch
view.write(data)
File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 500, in write
res = super(View, self).write(self._compute_defaults(vals))
File "/opt/odoo/odoo/odoo/models.py", line 3664, in write
real_recs._validate_fields(set(vals) - set(inverse_fields))
File "/opt/odoo/odoo/odoo/models.py", line 1249, in _validate_fields
check(self)
File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 385, in _check_xml
view_def = view.read_combined(['arch'])
File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 813, in read_combined
arch = root.apply_view_inheritance(arch_tree, self.model)
File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 755, in apply_view_inheritance
return self._apply_view_inheritance(source, inherit_tree)
File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 764, in _apply_view_inheritance
source = view._apply_view_inheritance(source, inherit_tree)
File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 760, in _apply_view_inheritance
arch_tree = etree.fromstring(view.arch.encode('utf-8'))
File "src/lxml/lxml.etree.pyx", line 3213, in lxml.etree.fromstring (src/lxml/lxml.etree.c:79003)
File "src/lxml/parser.pxi", line 1848, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:118334)
File "src/lxml/parser.pxi", line 1736, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:117014)
File "src/lxml/parser.pxi", line 1102, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:111258)
File "src/lxml/parser.pxi", line 595, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:105102)
File "src/lxml/parser.pxi", line 706, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:106810)
File "src/lxml/parser.pxi", line 646, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:105956)
File "<string>", line 0
lxml.etree.XMLSyntaxError: <no detail available>
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/odoo/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/opt/odoo/odoo/odoo/http.py", line 683, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/odoo/odoo/http.py", line 359, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/odoo/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/odoo/odoo/http.py", line 347, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/odoo/odoo/http.py", line 912, in __call__
return self.method(*args, **kw)
File "/opt/odoo/odoo/odoo/http.py", line 531, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/odoo/addons/web/controllers/main.py", line 1367, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/opt/odoo/odoo/addons/web/controllers/main.py", line 1355, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/odoo/odoo/api.py", line 396, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/opt/odoo/odoo/odoo/api.py", line 383, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/opt/odoo/odoo/addons/gfi_base/models/ir_module_module.py", line 35, in button_immediate_install
return super(IrModuleModule, self).button_immediate_install()
File "<decorator-gen-72>", line 2, in button_immediate_install
File "/opt/odoo/odoo/odoo/addons/base/models/ir_module.py", line 73, in check_and_log
return method(self, *args, **kwargs)
File "/opt/odoo/odoo/odoo/addons/base/models/ir_module.py", line 474, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/opt/odoo/odoo/odoo/addons/base/models/ir_module.py", line 592, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/opt/odoo/odoo/odoo/modules/registry.py", line 89, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/opt/odoo/odoo/odoo/modules/loading.py", line 455, in load_modules
loaded_modules, update_module, models_to_check)
File "/opt/odoo/odoo/odoo/modules/loading.py", line 348, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "/opt/odoo/odoo/odoo/modules/loading.py", line 221, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package)
File "/opt/odoo/odoo/odoo/modules/loading.py", line 69, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)
File "/opt/odoo/odoo/odoo/tools/convert.py", line 733, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate)
File "/opt/odoo/odoo/odoo/tools/convert.py", line 799, in convert_xml_import
obj.parse(doc.getroot())
File "/opt/odoo/odoo/odoo/tools/convert.py", line 719, in parse
self._tag_root(de)
File "/opt/odoo/odoo/odoo/tools/convert.py", line 677, in _tag_root
f(rec)
File "/opt/odoo/odoo/odoo/tools/convert.py", line 685, in _tag_root
)) from e
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/odoo/odoo/odoo/http.py", line 639, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo/odoo/http.py", line 315, in _handle_exception
raise exception.with_traceback(None) from new_cause
odoo.tools.convert.ParseError: while parsing /opt/odoo/odoo/addons/stock/views/res_partner_views.xml:8, near
<record id="view_partner_stock_form" model="ir.ui.view">
<field name="name">res.partner.stock.property.form.inherit</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="mail.res_partner_view_form_inherit_mail"/>
<field name="arch" type="xml">
<xpath expr="//page[#name='sales_purchases']/group" position="inside">
<group name="container_row_stock" groups="base.group_no_one" priority="6">
<group string="Inventory" name="inventory" colspan="2">
<field name="property_stock_customer"/>
<field name="property_stock_supplier"/>
</group>
</group>
</xpath>
</field>
</record>
My first thought was that the xpath was bad, but the error is not the same as an xpath error.
I already tried to delete this record for the installation, and then rewrite the record after having installing the module, and magic : the module can be upgraded without any error. Problem is that when we want to use the module, the error come again and make it impossible to use the module.
I am currently using Odoo 12 and I have installed the following Apps: CRM, Website, Project, Invoicing, Sales, Notes, Purchase, Employees, Expenses, Contacts, Discuss and Calendar.
Ever since this morning I am unable to open the contacts app. It's throwing the following error:
Error:
Odoo Server Error
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/http.py", line 654, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 312, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/usr/lib/python3/dist-packages/odoo/http.py", line 696, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 344, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 337, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 939, in __call__
return self.method(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 517, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 962, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 954, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 745, in call_kw
return _call_kw_model(method, model, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 718, in _call_kw_model
result = method(recs, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 1376, in load_views
for [v_id, v_type] in views
File "/usr/lib/python3/dist-packages/odoo/models.py", line 1376, in <dictcomp>
for [v_id, v_type] in views
File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_thread.py", line 410, in fields_view_get
res = super(MailThread, self).fields_view_get(view_id=view_id, view_type=view_type, toolbar=toolbar, submenu=submenu)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 1462, in fields_view_get
xarch, xfields = View.postprocess_and_fields(self._name, etree.fromstring(result['arch']), view_id)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 1095, in postprocess_and_fields
self.raise_view_error(message, view_id)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 548, in raise_view_error
raise ValueError(message)
ValueError: Field `website_published` does not exist
Error context:
View `res.partner.form`
[view_id: 113, xml_id: base.view_partner_form, model: res.partner, parent_id: n/a]
Is there an easy way to resolve this issue?
For my case:
Edit view: view.res.partner.form.website
Remove the button like following
<?xml version="1.0"?>
<data>
<!--
<button name="toggle_active" position="before">
<button class="oe_stat_button" name="website_publish_button" type="object" icon="fa-globe">
<field name="website_published" widget="website_button"/>
</button>
</button>
-->
</data>
I do have a new odoo 8 installation on a synology rackstation and experience trouble sending some email: e.g. confirm a sales order to the client.
Odoo Configuration: Odoo-8, Webstation on
Sending an email from the Odoo admin -> email - email is OK
Odoo is sending an automated "system notification" confirming a sales order: Document Model: sale.order, OK
Printing a sales order- ok, however warning wkhtmltopdf is missing
Confirming a sales order by email- Not Good -> Error
OpenERP Server Error
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/openerp/http.py", line 499, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/local/lib/python2.7/site-packages/openerp/http.py", line 516, in dispatch
result = self._call_function(**self.params)
File "/usr/local/lib/python2.7/site-packages/openerp/http.py", line 282, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/openerp/service/model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/openerp/http.py", line 279, in checked_call
return self.endpoint(*a, **kw)
File "/usr/local/lib/python2.7/site-packages/openerp/http.py", line 732, in __call__
return self.method(*args, **kw)
File "/usr/local/lib/python2.7/site-packages/openerp/http.py", line 375, in response_wrap
response = f(*args, **kw)
File "/var/packages/Odoo8/target/addons/web/controllers/main.py", line 944, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/var/packages/Odoo8/target/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/local/lib/python2.7/site-packages/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/var/packages/Odoo8/target/addons/email_template/wizard/mail_compose_message.py", line 54, in default_get
res.get('model'), res.get('res_id'), context=context
File "/usr/local/lib/python2.7/site-packages/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/var/packages/Odoo8/target/addons/email_template/wizard/mail_compose_message.py", line 103, in onchange_template_id
values = self.generate_email_for_composer_batch(cr, uid, template_id, [res_id], context=context)[res_id]
File "/usr/local/lib/python2.7/site-packages/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/var/packages/Odoo8/target/addons/email_template/wizard/mail_compose_message.py", line 167, in generate_email_for_composer_batch
template_values = self.pool.get('email.template').generate_email_batch(cr, uid, template_id, res_ids, fields=fields, context=ctx)
File "/usr/local/lib/python2.7/site-packages/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/var/packages/Odoo8/target/addons/email_template/email_template.py", line 514, in generate_email_batch
result, format = self.pool['report'].get_pdf(cr, uid, [res_id], report_service, context=ctx), 'pdf'
File "/usr/local/lib/python2.7/site-packages/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/var/packages/Odoo8/target/addons/report/models/report.py", line 252, in get_pdf
paperformat, specific_paperformat_args, save_in_attachment
File "/usr/local/lib/python2.7/site-packages/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/var/packages/Odoo8/target/addons/report/models/report.py", line 416, in _run_wkhtmltopdf
process = subprocess.Popen(wkhtmltopdf, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
I am not certain if the trouble is just the missing subprocess.Popen(wkhtmltopdf ...or a script error at line 710 or 1335?
I have not downloaded the script but may be somebody know the subprocess.py as I have no python experience.
Thank you!
I'm developing an OpenERP module and it contains too many class and when i try to install it i go that errors and i can't find which class have this error what should i do (i develop with eclipse IDE)
Traceback (most recent call last):
File "C:\Users\Mostafa\PycharmProjects\odoo\odoo8\openerp\http.py", line 517, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "C:\Users\Mostafa\PycharmProjects\odoo\odoo8\openerp\http.py", line 538, in dispatch
result = self._call_function(**self.params)
File "C:\Users\Mostafa\PycharmProjects\odoo\odoo8\openerp\http.py", line 294, in _call_function
return checked_call(self.db, *args, **kwargs)
File "C:\Users\Mostafa\PycharmProjects\odoo\odoo8\openerp\service\model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
File "C:\Users\Mostafa\PycharmProjects\odoo\odoo8\openerp\http.py", line 291, in checked_call
return self.endpoint(*a, **kw)
File "C:\Users\Mostafa\PycharmProjects\odoo\odoo8\openerp\http.py", line 754, in __call__
return self.method(*args, **kw)
File "C:\Users\Mostafa\PycharmProjects\odoo\odoo8\openerp\http.py", line 387, in response_wrap
response = f(*args, **kw)
File "C:\Users\Mostafa\PycharmProjects\odoo\odoo8\addons\web\controllers\main.py", line 953, in call_button
action = self._call_kw(model, method, args, {})
File "C:\Users\Mostafa\PycharmProjects\odoo\odoo8\addons\web\controllers\main.py", line 941, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "C:\Users\Mostafa\PycharmProjects\odoo\odoo8\openerp\api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "C:\Users\Mostafa\PycharmProjects\odoo\odoo8\openerp\addons\base\module\module.py", line 450, in button_immediate_install
return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
File "C:\Users\Mostafa\PycharmProjects\odoo\odoo8\openerp\api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "C:\Users\Mostafa\PycharmProjects\odoo\odoo8\openerp\addons\base\module\module.py", line 498, in _button_immediate_function
registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
File "C:\Users\Mostafa\PycharmProjects\odoo\odoo8\openerp\modules\registry.py", line 341, in new
openerp.modules.load_modules(registry._db, force_demo, status, update_module)
File "C:\Users\Mostafa\PycharmProjects\odoo\odoo8\openerp\modules\loading.py", line 358, in load_modules
loaded_modules, update_module)
File "C:\Users\Mostafa\PycharmProjects\odoo\odoo8\openerp\modules\loading.py", line 263, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "C:\Users\Mostafa\PycharmProjects\odoo\odoo8\openerp\modules\loading.py", line 158, in load_module_graph
models = registry.load(cr, package)
File "C:\Users\Mostafa\PycharmProjects\odoo\odoo8\openerp\modules\registry.py", line 148, in load
model = cls._build_model(self, cr)
File "C:\Users\Mostafa\PycharmProjects\odoo\odoo8\openerp\models.py", line 653, in _build_model
'_inherits': dict(cls._inherits),
ValueError: dictionary update sequence element #0 has length 11; 2 is required
It's very hard (verging on impossible) to answer without seeing your actual code. The problem is clearly in _inherits definition in one of your models.
Most likely you mixed up _inherits and _inherit. While the later one can be a either a list or a single string, _inherits has to be a dictionary.
It seems you might have erroneously defined _inherits as a list (instead of dict), because you really intended to use _inherit.
'_inherits': dict(cls._inherits), you just check it out whether you did right way or not. i am also beginner in openErp.but i think you have problem with this line. and Mr.Ludwik is correct without knowing the codes how can be possible to tell the error.