Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2687 Lượt xem
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


Ảnh đại diện
Huỷ bỏ
Tác giả

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

Câu trả lời hay nhất

Hi,

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


Thanks

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 24
2412
1
thg 1 24
1248
1
thg 2 23
2121
0
thg 2 23
2037
1
thg 1 23
3465