Odoo Help

Welcome!

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.

0

Odoo 8: "KeyError: 'payment_order_type'" error after installing Account Banking - Payments Export Infrastructure Module

By
alexk1r
on 5/16/16, 1:20 PM 463 views

Hi all,

I've been setting up a bunch of payment and direct debit modules. After installing Account Banking - Payments Export Infrastructure Module (https://www.odoo.com/apps/8.0/account_banking_payment_export/), I've got the following error message, which brought down the whole Odoo server down:


2016-05-16 13:14:53,108 15389 INFO ? openerp.service.server: HTTP service (werkzeug) running on 0.0.0.0:8069
2016-05-16 13:15:06,355 15389 INFO ? openerp.addons.bus.bus: Bus.loop listen imbus on db postgres
2016-05-16 13:15:06,973 15389 INFO ? openerp.addons.report.models.report: You need Wkhtmltopdf to print a pdf version of the reports.
2016-05-16 13:15:07,228 15389 INFO ? openerp.http: HTTP Configuring static files
2016-05-16 13:15:07,253 15389 INFO odoo openerp.modules.loading: loading 1 modules...
2016-05-16 13:15:07,260 15389 INFO odoo openerp.modules.loading: 1 modules loaded in 0.01s, 0 queries
2016-05-16 13:15:07,303 15389 INFO odoo openerp.modules.loading: loading 95 modules...
2016-05-16 13:15:07,491 15389 WARNING odoo openerp.osv.fields: view_load attribute is deprecated on ir.fields. Args: {'help': 'Payment type of the customer', 'view_load': True, 'relation': 'payment.type', 'type': 'many2one', 'method': True, 'string': 'Customer Payment Type'}
2016-05-16 13:15:07,491 15389 WARNING odoo openerp.osv.fields: view_load attribute is deprecated on ir.fields. Args: {'help': 'Payment type of the supplier', 'view_load': True, 'relation': 'payment.type', 'type': 'many2one', 'method': True, 'string': 'Supplier Payment Type'}
2016-05-16 13:15:07,494 15389 WARNING odoo openerp.models: In class <class 'openerp.addons.account_payment_extension.account_move_line.account_move_line'>, field 'amount_to_pay' overriding an existing value
2016-05-16 13:15:07,530 15389 INFO odoo openerp.modules.loading: 95 modules loaded in 0.23s, 0 queries
2016-05-16 13:15:08,149 15389 INFO odoo werkzeug: 127.0.0.1 - - [16/May/2016 13:15:08] "GET / HTTP/1.1" 500 -
2016-05-16 13:15:08,159 15389 ERROR odoo werkzeug: Error on request:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 177, in run_wsgi
execute(self.server.app)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 165, in execute
application_iter = app(environ, start_response)
File "/home/ubuntu/odoo/openerp/service/server.py", line 290, in app
return self.app(e, s)
File "/home/ubuntu/odoo/openerp/service/wsgi_server.py", line 216, in application
return application_unproxied(environ, start_response)
File "/home/ubuntu/odoo/openerp/service/wsgi_server.py", line 202, in application_unproxied
result = handler(environ, start_response)
File "/home/ubuntu/odoo/openerp/http.py", line 1290, in __call__
return self.dispatch(environ, start_response)
File "/home/ubuntu/odoo/openerp/http.py", line 1264, in __call__
return self.app(environ, start_wrapped)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 588, in __call__
return self.app(environ, start_response)
File "/home/ubuntu/odoo/openerp/http.py", line 1428, in dispatch
ir_http = request.registry['ir.http']
File "/home/ubuntu/odoo/openerp/http.py", line 346, in registry
return openerp.modules.registry.RegistryManager.get(self.db) if self.db else None
File "/home/ubuntu/odoo/openerp/modules/registry.py", line 339, in get
update_module)
File "/home/ubuntu/odoo/openerp/modules/registry.py", line 370, in new
openerp.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/ubuntu/odoo/openerp/modules/loading.py", line 357, in load_modules
registry.setup_models(cr)
File "/home/ubuntu/odoo/openerp/modules/registry.py", line 194, in setup_models
model._setup_fields(cr, SUPERUSER_ID)
File "/home/ubuntu/odoo/openerp/api.py", line 256, in wrapper
return old_api(self, *args, **kwargs)
File "/home/ubuntu/odoo/openerp/api.py", line 360, in old_api
result = method(recs, *args, **kwargs)
File "/home/ubuntu/odoo/openerp/models.py", line 3007, in _setup_fields
field.setup(self.env)
File "/home/ubuntu/odoo/openerp/fields.py", line 453, in setup
self._setup_related(env)
File "/home/ubuntu/odoo/openerp/fields.py", line 1340, in _setup_related
super(Selection, self)._setup_related(env)
File "/home/ubuntu/odoo/openerp/fields.py", line 499, in _setup_related
field = recs._fields[name]
KeyError: 'payment_order_type'


I've got it working eventually but however whenever I try to install a module that's dependant on  Account Banking - Payments Export Infrastructure Module, the installation fails and I have to disable the module from the database in order to get Odoo working again. Same thing happens if I click on upgrade or even uninstall the module. Feels like something is missing somewhere but I can't figure out where to look specifically.

Any help would be appreciated.


Thanks

Turned out that the problem was with one of the previously installed modules. After some digging, I've pinpointed it to Suppliers Payment Management. Reinstalling the module solved all my problems.

alexk1r
on 5/18/16, 4:28 AM

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)

Stats

Asked: 5/16/16, 1:20 PM
Seen: 463 times
Last updated: 5/16/16, 1:22 PM