Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2254 มุมมอง
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


อวตาร
ละทิ้ง
ผู้เขียน

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

คำตอบที่ดีที่สุด

Hi,

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


Thanks

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ค. 24
1807
1
ม.ค. 24
931
1
ก.พ. 23
1819
0
ก.พ. 23
1702
1
ม.ค. 23
3070