Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1960 Zobrazení

hello 

i have this issue when i create new payment methode 

Version Odoo 15 community vps hosting ubuntu server 20.

error message :

RPC_ERROR

Odoo Server Error

Traceback (most recent call last):
  File "/cityvape/cityvape-server/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
    result = request.dispatch()
  File "/cityvape/cityvape-server/odoo/http.py", line 687, in dispatch
    result = self._call_function(**self.params)
  File "/cityvape/cityvape-server/odoo/http.py", line 359, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/cityvape/cityvape-server/odoo/service/model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "/cityvape/cityvape-server/odoo/http.py", line 348, in checked_call
    result = self.endpoint(*a, **kw)
  File "/cityvape/cityvape-server/odoo/http.py", line 916, in __call__
    return self.method(*args, **kw)
  File "/cityvape/cityvape-server/odoo/http.py", line 535, in response_wrap
    response = f(*args, **kw)
  File "/cityvape/cityvape-server/addons/web/controllers/main.py", line 1342, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/cityvape/cityvape-server/addons/web/controllers/main.py", line 1334, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/cityvape/cityvape-server/odoo/api.py", line 462, in call_kw
    result = _call_kw_model_create(method, model, args, kwargs)
  File "/cityvape/cityvape-server/odoo/api.py", line 442, in _call_kw_model_create
    result = method(recs, *args, **kwargs)
  File "", line 2, in create
  File "/cityvape/cityvape-server/odoo/api.py", line 412, in _model_create_multi
    return create(self, [arg])
  File "/cityvape/cityvape-server/addons/account/models/account_payment_method.py", line 28, in create
    if information.get('mode') == 'multi':
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/cityvape/cityvape-server/odoo/http.py", line 643, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/cityvape/cityvape-server/odoo/http.py", line 301, in _handle_exception
    raise exception.with_traceback(None) from new_cause
AttributeError: 'NoneType' object has no attribute 'get'


Avatar
Zrušit

can you help me to resolve the probleme

Nejlepší odpověď

Hi Yassine,

You have used 
if information.get('mode') == 'multi':

Here you might be getting an empty object in 'information'. That is why this error is coming.

if information.get('mode') == 'multi':


Avatar
Zrušit
Autor

please can you help me to resolve the probleme

Yes, sure. I will help you with your problem. But you have to share your error first. From the above error, I can only tell you where you are using information.get('mode'), you are getting nothing in information at that time. So, you have to debug at that point.

Autor

Just give me instructions to do I ll give you the error please help me

Ok, just debug at the point where you are getting information.get('mode'). Look for what you have getting in information.

Related Posts Odpovědi Zobrazení Aktivita
1
kvě 24
2181
1
led 24
1112
1
kvě 23
2486
0
úno 23
1883
1
led 23
3264