Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
2071 Vistas
I am adding a payment method in a clean database. Billing, Accounting, CRM, Ecommerce and Account_Payment_Mode modules installed

By saving the payment method with the following data:

Name: Electronic
Code: electronic
Type: inbound

I have this error:

Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/http.py", line 1583, in _serve_db return service_model.retrying(self._serve_ir_http, self.env) File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 134, in retrying result = func() File "/usr/lib/python3/dist-packages/odoo/http.py", line 1610, in _serve_ir_http response = self.dispatcher.dispatch(rule.endpoint, args) File "/usr/lib/python3/dist-packages/odoo/http.py", line 1807, in dispatch result = self.request.registry['ir.http']._dispatch(endpoint) File "/usr/lib/python3/dist-packages/odoo/addons/website/models/ir_http.py", line 235, in _dispatch response = super()._dispatch(endpoint) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 154, in _dispatch result = endpoint(**request.params) File "/usr/lib/python3/dist-packages/odoo/http.py", line 696, in route_wrapper result = endpoint(self, *args, **params_ok) File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/dataset.py", line 42, in call_kw return self._call_kw(model, method, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/dataset.py", line 33, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/api.py", line 459, in call_kw result = _call_kw_model_create(method, model, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/api.py", line 439, in _call_kw_model_create result = method(recs, *args, **kwargs) File "", line 2, in create File "/usr/lib/python3/dist-packages/odoo/api.py", line 409, in _model_create_multi return create(self, [arg]) File "/usr/lib/python3/dist-packages/odoo/addons/account/models/account_payment_method.py", line 28, in create if information.get('mode') == 'multi': AttributeError: 'NoneType' object has no attribute 'get' The above server error caused the following client error: null


Avatar
Descartar
Autor

Oh! Thank you very much for the answer! You have saved me many hours of research! Regards!

Mejor respuesta

Hi,

This is  a bug inside the odoo core and it has been already reported to Odoo and expected to be fixed soon.


Thanks

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
may 24
1513
1
ene 24
717
1
feb 23
1628
0
feb 23
1599
1
ene 23
2849