Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16] account_reconcile_oca: javascript error when selecting an entry in "bank reconcile" #750

Open
beschauer-swp opened this issue Nov 19, 2024 · 0 comments
Labels

Comments

@beschauer-swp
Copy link

beschauer-swp commented Nov 19, 2024

Given

  • cash journal entries from a closed PoS session.

When

  • going to "Invoicing / Accounting / Journal Entries"
  • opening one of the cash journal entries related to PoS
  • go to "Bank reconcile"
  • select a "Reconciled" entry on the left.

Then

  • a JavaScript error is thrown.

    TypeError: Cannot read properties of undefined (reading 'model')
        at ReconcileController.selectRecord (http://localhost:8069/web/assets/174-7098bb0/web.assets_backend.min.js:14206:94)
        at ReconcileController.openRecord (http://localhost:8069/web/assets/174-7098bb0/web.assets_backend.min.js:14209:31)
        at ReconcileKanbanRecord.onGlobalClick (http://localhost:8069/web/assets/174-7098bb0/web.assets_backend.min.js:4417:410)
        at Object.mainEventHandler (http://localhost:8069/web/assets/173-8e504a5/web.assets_common.min.js:2002:77)
        at HTMLDivElement.listener (http://localhost:8069/web/assets/173-8e504a5/web.assets_common.min.js:1175:15)
    

It comes from https://github.com/OCA/account-reconcile/blob/16.0/account_reconcile_oca/static/src/js/reconcile/reconcile_controller.esm.js#L116
this.form_controller is undefined.

Screenshot 2024-11-19 at 09 32 42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant