Odoo 14: Point of Sale Installation Error - odoo

I have installed running Odoo 14 in Docker using the default setup without any additional customisations. For the past several days I've been trying to install the Point of Sale module from within Odoo with no success - every time I get the error below.
Could anyone please help me figure out what's wrong and get PoS working?
Thank you!
Odoo Server Error
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/usr/lib/python3/dist-packages/odoo/http.py", line 682, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 358, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 346, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 911, in __call__
return self.method(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 530, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1363, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1351, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 396, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 383, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "<decorator-gen-71>", line 2, in button_immediate_install
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 73, in check_and_log
return method(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 474, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 592, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 89, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 455, in load_modules
loaded_modules, update_module, models_to_check)
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 348, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 221, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package)
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 69, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 733, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 799, in convert_xml_import
obj.parse(doc.getroot())
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 719, in parse
self._tag_root(de)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 677, in _tag_root
f(rec)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 684, in _tag_root
etree.tostring(rec, encoding='unicode').rstrip()
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/http.py", line 638, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 314, in _handle_exception
raise exception.with_traceback(None) from new_cause
odoo.tools.convert.ParseError: while parsing /usr/lib/python3/dist-packages/odoo/addons/point_of_sale/data/point_of_sale_data.xml:13, near
<record id="product_category_pos" model="product.category">
<field name="parent_id" ref="product.product_category_1"/>
<field name="name">PoS</field>
</record>

General advice
If you want to improve your chances of success, don't try to load any modules from other versions or third parties, and try to stick to the basic functionality, or try an older version, or packaging that is supported by another company, such as https://github.com/Elico-Corp/odoo-docker or a fork such as https://hub.docker.com/r/flectrahq/flectra/
If you really want to fix it...
It looks like you're using an incompatible version of the point-of-sale add-on.
You will need to start with Odoo's above average documentation: https://www.odoo.com/documentation/14.0/
Seeing as that you're dealing with a module, you will need to invest some time into https://www.odoo.com/documentation/14.0/howtos/backend.html
If you want to learn more about Python, give yourself a few months, and start with something like this: https://www.udemy.com/course/the-complete-python-course/ and then move on to https://subscription.packtpub.com/search?query=working%20with%20odoo%2011&released=Available
Sticking to trial-and-error...
To move your database, just go to the database manager: http://odoo:8069/web/database/manager#action=database_manager and export your database from there, then import it via the same URL on your new instance.
Some Odoo background
Besides the fact that any software sometimes introduce breaking changes, and that the internals of any ERP demand a high level of technical expertise, Odoo CE seems further disadvantaged by especially careless Odoo employees as "breaking changes" play into their tactic of motivating use their hosted service - which is their main revenue model. (Also evidenced by their effort to rewrite modules under a non-GPL licence.)
They clearly lack the faith in humanity that drives open source. Lets keep motivating them to share, help and open up. Open source is more than a cheap marketing gimmick: The power of open source comes from trust, and unconditional giving, which drives a much larger market that any number of corporations can handle.

Related

Odoo Error when installing module KeyError

I am getting the following error when installing a module, I could use some help. How can I fix it?
I am working with odoo v12
Odoo Server Error
Traceback (most recent call last):
File "/home/ernesto/odoo12/odoo/http.py", line 656, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/ernesto/odoo12/odoo/http.py", line 314, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/home/ernesto/odoo12/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/home/ernesto/odoo12/odoo/http.py", line 698, in dispatch
result = self._call_function(**self.params)
File "/home/ernesto/odoo12/odoo/http.py", line 346, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/ernesto/odoo12/odoo/service/model.py", line 98, in wrapper
return f(dbname, *args, **kwargs)
File "/home/ernesto/odoo12/odoo/http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/home/ernesto/odoo12/odoo/http.py", line 941, in __call__
return self.method(*args, **kw)
File "/home/ernesto/odoo12/odoo/http.py", line 519, in response_wrap
response = f(*args, **kw)
File "/home/ernesto/odoo12/addons/web/controllers/main.py", line 966, in call_button
action = self._call_kw(model, method, args, {})
File "/home/ernesto/odoo12/addons/web/controllers/main.py", line 954, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/ernesto/odoo12/odoo/api.py", line 759, in call_kw
return _call_kw_multi(method, model, args, kwargs)
File "/home/ernesto/odoo12/odoo/api.py", line 746, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "<decorator-gen-61>", line 2, in button_immediate_install
File "/home/ernesto/odoo12/odoo/addons/base/models/ir_module.py", line 74, in check_and_log
return method(self, *args, **kwargs)
File "/home/ernesto/odoo12/odoo/addons/base/models/ir_module.py", line 445, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/home/ernesto/odoo12/odoo/addons/base/models/ir_module.py", line 561, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/home/ernesto/odoo12/odoo/modules/registry.py", line 86, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/ernesto/odoo12/odoo/modules/loading.py", line 421, in load_modules
loaded_modules, update_module, models_to_check)
File "/home/ernesto/odoo12/odoo/modules/loading.py", line 313, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "/home/ernesto/odoo12/odoo/modules/loading.py", line 222, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package, report=report)
File "/home/ernesto/odoo12/odoo/modules/loading.py", line 68, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind, report)
File "/home/ernesto/odoo12/odoo/tools/convert.py", line 798, in convert_file
convert_csv_import(cr, module, pathname, fp.read(), idref, mode, noupdate)
File "/home/ernesto/odoo12/odoo/tools/convert.py", line 841, in convert_csv_import
result = env[model].load(fields, datas)
File "/home/ernesto/odoo12/odoo/models.py", line 943, in load
for id, xid, record, info in converted:
File "/home/ernesto/odoo12/odoo/models.py", line 1068, in _convert_records
for record, extras in stream:
File "/home/ernesto/odoo12/odoo/tools/misc.py", line 859, in next
val = next(self.stream, _ph)
File "/home/ernesto/odoo12/odoo/models.py", line 991, in _extract_records
for index, fnames in enumerate(fields_)
File "/home/ernesto/odoo12/odoo/models.py", line 992, in <listcomp>
if fields[fnames[0]].type == 'one2many'
KeyError: 'id
I am getting the following error when installing a module, I could use some help. How can I fix it?
I am working with odoo v12
The error occurs when Odoo tries to import a CSV file.
Check the CSV files listed in the data section of the manifest file.
Maybe there is an apostrophe or blank spaces just before the id field name. You can reproduce a similar error using the following CSV file:
'id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_product_product_account_user,product.product.account.user,product.model_product_product,group_account_user,1,0,0,0

Request' object has no attribute 'full_path after click on logout from website odoo 9 [duplicate]

I am using odoo v9 community in Ubuntu 14.04 installation is perfectly done after all works.
but when i install website module of odoo and after i log out from odoo it show following error:
"500: Internal Server Error"
and my log:
"Traceback (most recent call last):
File "/opt/odoo96/addons/website/models/ir_http.py", line 242, in _handle_exception
response = super(ir_http, self)._handle_exception(exception)
File "/opt/odoo96/openerp/addons/base/ir/ir_http.py", line 147, in _handle_exception
return request._handle_exception(exception)
File "/opt/odoo96/openerp/http.py", line 738, in _handle_exception
return super(HttpRequest, self)._handle_exception(exception)
File "/opt/odoo96/openerp/addons/base/ir/ir_http.py", line 172, in _dispatch
result = request.dispatch()
File "/opt/odoo96/openerp/http.py", line 769, in dispatch
r = self._call_function(**self.params)
File "/opt/odoo96/openerp/http.py", line 316, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo96/openerp/service/model.py", line 118, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo96/openerp/http.py", line 309, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo96/openerp/http.py", line 888, in __call__
return self.method(*args, **kw)
File "/opt/odoo96/openerp/http.py", line 466, in response_wrap
response = f(*args, **kw)
File "/opt/odoo96/addons/website/controllers/main.py", line 44, in index
return request.registry['ir.http'].reroute(first_menu.url)
File "/opt/odoo96/addons/website/models/ir_http.py", line 209, in reroute
return self._dispatch()
File "/opt/odoo96/addons/website/models/ir_http.py", line 175, in _dispatch
key = self.get_page_key()
File "/opt/odoo96/addons/website/models/ir_http.py", line 94, in get_page_key
return (self._name, "cache", request.uid, request.lang, request.httprequest.full_path)
AttributeError: 'Request' object has no attribute 'full_path'"
but when i uninstall web module all working well again. how can i solve this ?
Thanks
Its a dependency issue.
Install a newer version of werkzeug.
https://github.com/odoo/odoo/issues/10184
pip install werkzeug==0.9.4
Should do the trick.

Brand new odoo installation [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I have installed brand new odoo 10 version and getting this error. I have 2 odoo installations with 2 environmentalist odoo9 is working ok, but when i switch to odoo10 getting this error just after i run database and try to connect to localhost.
2017-04-20 19:20:21,036 5916 ERROR 10_blabla werkzeug: Error on request:
Traceback (most recent call last):
File "/home/grf/virtualenv/odoo/10.0/lib/python2.7/site-packages/werkzeug/serving.py", line 193, in run_wsgi
execute(self.server.app)
File "/home/grf/virtualenv/odoo/10.0/lib/python2.7/site-packages/werkzeug/serving.py", line 181, in execute
application_iter = app(environ, start_response)
File "/home/grf/vcs/odoo/odoo/service/server.py", line 246, in app
return self.app(e, s)
File "/home/grf/vcs/odoo/odoo/service/wsgi_server.py", line 184, in application
return application_unproxied(environ, start_response)
File "/home/grf/vcs/odoo/odoo/service/wsgi_server.py", line 170, in application_unproxied
result = handler(environ, start_response)
File "/home/grf/vcs/odoo/odoo/http.py", line 1306, in __call__
return self.dispatch(environ, start_response)
File "/home/grf/vcs/odoo/odoo/http.py", line 1280, in __call__
return self.app(environ, start_wrapped)
File "/home/grf/virtualenv/odoo/10.0/lib/python2.7/site-packages/werkzeug/wsgi.py", line 599, in __call__
return self.app(environ, start_response)
File "/home/grf/vcs/odoo/odoo/http.py", line 1471, in dispatch
result = ir_http._dispatch()
File "/home/grf/vcs/odoo/odoo/addons/base/ir/ir_http.py", line 199, in _dispatch
return cls._handle_exception(e)
File "/home/grf/vcs/odoo/odoo/addons/base/ir/ir_http.py", line 169, in _handle_exception
return request._handle_exception(exception)
File "/home/grf/vcs/odoo/odoo/http.py", line 766, in _handle_exception
return super(HttpRequest, self)._handle_exception(exception)
File "/home/grf/vcs/odoo/odoo/addons/base/ir/ir_http.py", line 195, in _dispatch
result = request.dispatch()
File "/home/grf/vcs/odoo/odoo/http.py", line 825, in dispatch
r = self._call_function(**self.params)
File "/home/grf/vcs/odoo/odoo/http.py", line 331, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/grf/vcs/odoo/odoo/service/model.py", line 119, in wrapper
return f(dbname, *args, **kwargs)
File "/home/grf/vcs/odoo/odoo/http.py", line 324, in checked_call
result = self.endpoint(*a, **kw)
File "/home/grf/vcs/odoo/odoo/http.py", line 933, in __call__
return self.method(*args, **kw)
File "/home/grf/vcs/odoo/odoo/http.py", line 504, in response_wrap
response = f(*args, **kw)
File "/home/grf/vcs/odoo/addons/web/controllers/main.py", line 440, in web_client
context = request.env['ir.http'].webclient_rendering_context()
AttributeError: 'ir.http' object has no attribute 'webclient_rendering_context'
UPDATE
1 more error
2017-04-21 06:13:04,897 4479 ERROR newdb odoo.modules.registry: Failed to load registry
Traceback (most recent call last):
File "/home/grf/vcs/odoo/odoo/modules/registry.py", line 78, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/grf/vcs/odoo/odoo/modules/loading.py", line 339, in load_modules
loaded_modules, update_module)
File "/home/grf/vcs/odoo/odoo/modules/loading.py", line 237, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/home/grf/vcs/odoo/odoo/modules/loading.py", line 131, in load_module_graph
model_names = registry.load(cr, package)
File "/home/grf/vcs/odoo/odoo/modules/registry.py", line 261, in load
model = cls._build_model(self, cr)
File "/home/grf/vcs/odoo/odoo/models.py", line 540, in _build_model
raise TypeError("Model %r inherits from non-existing model %r." % (name, parent))
TypeError: Model 'ir.qweb.widget.precision' inherits from non-existing model 'ir.qweb.widget'.
2017-04-21 06:13:04,900 4479 CRITICAL newdb odoo.service.server: Failed to initialize database `newdb`.
Traceback (most recent call last):
File "/home/grf/vcs/odoo/odoo/service/server.py", line 898, in preload_registries
registry = Registry.new(dbname, update_module=update_module)
File "/home/grf/vcs/odoo/odoo/modules/registry.py", line 78, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/grf/vcs/odoo/odoo/modules/loading.py", line 339, in load_modules
loaded_modules, update_module)
File "/home/grf/vcs/odoo/odoo/modules/loading.py", line 237, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/home/grf/vcs/odoo/odoo/modules/loading.py", line 131, in load_module_graph
model_names = registry.load(cr, package)
File "/home/grf/vcs/odoo/odoo/modules/registry.py", line 261, in load
model = cls._build_model(self, cr)
File "/home/grf/vcs/odoo/odoo/models.py", line 540, in _build_model
raise TypeError("Model %r inherits from non-existing model %r." % (name, parent))
TypeError: Model 'ir.qweb.widget.precision' inherits from non-existing model 'ir.qweb.widget'.
Clear your browser cookies then check.
Just check your port of config file and also check weather it is taking correct database or not means for odoo10 you have created new database. Check database while running odoo10 and make sure it only takes database which you created for running odoo10.
You can enter db_filter field in your config file to make sure that server is running on new database. Before running new server make sure you logout from your last database where odoo9 is running.
If you still facing issue just let me know. I will try my best to solve your issue.
Find it, odoo can't find ir.qweb.widget model.
Check your odoo addons folder.
Check that it is odoo-10 or not.
Try to run with --load=web command line argument.

Odoo unknown currency_field 'currency_id'

In Odoo 9 community version, I added the following monetary field as a monetary amount via the web interface: res.partner.x_tablet_bail_amount.
It's working fine, but when installing any new module I get the following error and my module does not install.
Any help? thanks!
Odoo Server Error
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 605, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 642, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 316, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 118, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 309, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 893, in __call__
return self.method(*args, **kw)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 471, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 998, in call_button
action = self._call_kw(model, method, args, {})
File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 986, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 238, in wrapper
return old_api(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/addons/base/module/module.py", line 459, in button_immediate_install
return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 238, in wrapper
return old_api(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/addons/base/module/module.py", line 533, in _button_immediate_function
registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
File "/usr/lib/python2.7/dist-packages/openerp/modules/registry.py", line 385, in new
openerp.modules.load_modules(registry._db, force_demo, status, update_module)
File "/usr/lib/python2.7/dist-packages/openerp/modules/loading.py", line 283, in load_modules
registry.setup_models(cr, partial=True)
File "/usr/lib/python2.7/dist-packages/openerp/modules/registry.py", line 199, in setup_models
model._setup_fields(cr, SUPERUSER_ID)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 238, in wrapper
return old_api(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 342, in old_api
result = method(recs, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 3044, in _setup_fields
field.setup_full(self)
File "/usr/lib/python2.7/dist-packages/openerp/fields.py", line 476, in setup_full
self._setup_regular_full(model)
File "/usr/lib/python2.7/dist-packages/openerp/fields.py", line 1131, in _setup_regular_full
"Field %s with unknown currency_field %r" % (self, self.currency_field)
AssertionError: Field res.partner.x_tablet_bail_amount with unknown currency_field 'currency_id'
Fields of type monetary are using other fields to do some stuff like printing currency symbols in reports or the client. Per default currency_id is used (Odoo Code) for that process, and as far as i know there is no currency_id defined on res.partner.
So maybe you should define it or get it as related field from another relation?
From the source code it does not seem to be any currency_id field defined on res.partner.
However the field is indeed defined on res.company, which has a Many2One relationship with res.partner. I suppose res.partner is nothing but a kind of partially abstract class that needs to be extended for every type of partner within Odoo, including companies (only guessing here).
So Odoo is right when it spits
Field res.partner.x_tablet_bail_amount with unknown currency_field
'currency_id'
because the field is not there, really.
What you could do is, instead of defining your custom field x_tablet_bail_amount on res.partner, define it on res.company. That way your monetary field will be able to resolve the right currency instead of looking for something that does not exist.
'currency_id' field is added to 'res.partner' model in the 'account' mudule, so you have to add 'account' to the list of dependencies in the manifest and then the monetary field would work fine.

odoo IndexError: list index out of range

Any ideas on the following odoo error? I Installed the Accounting module and instead of modifying the default Sales and Purchase Taxes entries ODOO created, made my own and deleted theirs. This error started happening when I try accessing different parts of the accounting module. I could try to reinstall the module but have had bad experiences with that.
Odoo Server Error
Traceback (most recent call last):
File "/opt/odoo-9.0.20160620-2/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/http.py", line 646, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo-9.0.20160620-2/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/http.py", line 683, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo-9.0.20160620-2/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/http.py", line 319, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo-9.0.20160620-2/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/service/model.py", line 118, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo-9.0.20160620-2/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/http.py", line 312, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo-9.0.20160620-2/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/http.py", line 962, in __call__
return self.method(*args, **kw)
File "/opt/odoo-9.0.20160620-2/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/http.py", line 512, in response_wrap
response = f(*args, **kw)
File "/opt/odoo-9.0.20160620-2/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/addons/web/controllers/main.py", line 897, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/opt/odoo-9.0.20160620-2/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/addons/web/controllers/main.py", line 889, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/opt/odoo-9.0.20160620-2/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo-9.0.20160620-2/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/api.py", line 381, in old_api
result = method(recs, *args, **kwargs)
File "/opt/odoo-9.0.20160620-2/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/models.py", line 6054, in onchange
record._onchange_eval(name, field_onchange[name], result)
File "/opt/odoo-9.0.20160620-2/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/models.py", line 5911, in _onchange_eval
method_res = method(self)
File "/opt/odoo-9.0.20160620-2/apps/odoo/lib/odoo-9.0rc20160620-py2.7.egg/openerp/addons/account/models/res_config.py", line 169, in onchange_company_id
self.default_sale_tax_id = isinstance(taxes_id, list) and taxes_id[0] or taxes_id
IndexError: list index out of range
This was a bug that was fixed on commit 1d843884e861252e395e0818b0fbf8aa074cd9d2.
Do a git pull on your branch to update your server files,restart the server and try again.
The problem is that in "res_config.py" you have a list you work with the first element is probably empty
To avoid this problem, you can use taxes_id[0] inside if taxes_id: