This question has been flagged
1 Reply
2229 Views

I am getting this when I try to open Accounting > Opening Entries Journal

Error:

Odoo Server Error

Traceback (most recent call last):

  File "/home/odoo/src/odoo/odoo/http.py", line 654, in _handle_exception

    return super(JsonRequest, self)._handle_exception(exception)

  File "/home/odoo/src/odoo/odoo/http.py", line 312, in _handle_exception

    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])

  File "/home/odoo/src/odoo/odoo/tools/pycompat.py", line 87, in reraise

    raise value

  File "/home/odoo/src/odoo/odoo/http.py", line 696, in dispatch

    result = self._call_function(**self.params)

  File "/home/odoo/src/odoo/odoo/http.py", line 344, in _call_function

    return checked_call(self.db, *args, **kwargs)

  File "/home/odoo/src/odoo/odoo/service/model.py", line 97, in wrapper

    return f(dbname, *args, **kwargs)

  File "/home/odoo/src/odoo/odoo/http.py", line 337, in checked_call

    result = self.endpoint(*a, **kw)

  File "/home/odoo/src/odoo/odoo/http.py", line 939, in __call__

    return self.method(*args, **kw)

  File "/home/odoo/src/odoo/odoo/http.py", line 517, in response_wrap

    response = f(*args, **kw)

  File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 966, in call_button

    action = self._call_kw(model, method, args, {})

  File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 954, in _call_kw

    return call_kw(request.env[model], method, args, kwargs)

  File "/home/odoo/src/odoo/odoo/api.py", line 749, in call_kw

    return _call_kw_multi(method, model, args, kwargs)

  File "/home/odoo/src/odoo/odoo/api.py", line 736, in _call_kw_multi

    result = method(recs, *args, **kwargs)

  File "/home/odoo/src/odoo/addons/account/models/account_journal_dashboard.py", line 362, in open_action

    invoice_type = _journal_invoice_type_map[(self.type, self._context.get('invoice_type'))]

KeyError: ('situation', None)



-------

comments reply

The only module related is Account Fiscal Year

https://apps.odoo.com/apps/modules/12.0/sync_fiscal_year/


            
            
Avatar
Discard
Best Answer

do you have any custom module developments related to the accounting module?

Avatar
Discard

uninstall above app and do the same and let me know the result

Author

before asking on the form I did uninstall the app but the Accounting>Opening Entries Journal was still there with the same error

in Accounting>Configuration>Journals>Opening Entries Journal

when I changed the type from "Opening/Closing Situation" to "Miscellaneous" it stopped error

Author

what is the difference between the two types "Opening/Closing Situation" and "Miscellaneous". would it affect anything

I guess that error might be generated from above custom module. please contact that module developers for help.