Odoo Help


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

on 5/16/16, 1:20 PM 1,063 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
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: - - [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
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
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
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
File "/home/ubuntu/odoo/openerp/fields.py", line 453, in setup
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.


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.

on 5/18/16, 4:28 AM

About This Community

This platform 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 Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


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