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

mgmtsystem_nonconformity: causing JS traceback in Accounting App #587

Open
yp-oerp opened this issue May 2, 2024 · 1 comment
Open

mgmtsystem_nonconformity: causing JS traceback in Accounting App #587

yp-oerp opened this issue May 2, 2024 · 1 comment
Labels
Milestone

Comments

@yp-oerp
Copy link

yp-oerp commented May 2, 2024

Module

mgmtsystem_nonconformity

Describe the bug

When attempting to validate bank statement lines or opening the 'discuss' feature in V16 Enterprise Accounting Reconciliation screen, an error traceback is displayed.

Steps to reproduce the behavior:

  1. Install the mgmtsystem_nonconformity module.
  2. Go to Accounting in v16 Enterprise -> Click on any journal which has items to reconcile
  3. Click on discuss or try to validate a bank statement line

Expected behavior
No error!

Additional context
We are getting the below error:
OwlError: An error occured in the owl lifecycle (see this Error's "cause" property)
at handleError (http://localhost:8016/web/assets/9641-16f2c17/web.assets_common.min.js:1472:101)
at owl.App.handleError (http://localhost:8016/web/assets/9641-16f2c17/web.assets_common.min.js:2098:29)
at Fiber._render (http://localhost:8016/web/assets/9641-16f2c17/web.assets_common.min.js:1497:19)
at Fiber.render (http://localhost:8016/web/assets/9641-16f2c17/web.assets_common.min.js:1495:6)
at ComponentNode.render (http://localhost:8016/web/assets/9641-16f2c17/web.assets_common.min.js:1571:56)

Caused by: TypeError: Cannot read properties of undefined (reading 'data')
at MessagingClass.template (eval at compile (http://localhost:8016/web/assets/9641-16f2c17/web.assets_common.min.js:2056:374), :66:50)
at node.renderFn (http://localhost:8016/web/assets/9641-16f2c17/web.assets_common.min.js:1613:210)
at node.renderFn (http://localhost:8016/web/assets/9641-16f2c17/web.assets_common.min.js:1614:207)
at Fiber._render (http://localhost:8016/web/assets/9641-16f2c17/web.assets_common.min.js:1496:96)
at Fiber.render (http://localhost:8016/web/assets/9641-16f2c17/web.assets_common.min.js:1495:6)
at ComponentNode.render (http://localhost:8016/web/assets/9641-16f2c17/web.assets_common.min.js:1571:56)

This is caused by the javascript changes in the module, after commenting out the web.assets_backend in manifest of mgmtsystem_nonconformity module, the error is resolved.

@yp-oerp yp-oerp added the bug label May 2, 2024
@max3903 max3903 added this to the 16.0 milestone Sep 23, 2024
@Sibert-Aerts
Copy link

We experienced this exact same error except when trying to edit a worksheet template (which opens a Studio editor view).

I fixed the error locally by prefixing chatterTopbar.chatter.webRecord and to the following t-if condition:

t-if="chatterTopbar.chatter.webRecord.data.non_conformity_count !== undefined"

If a maintainer could implement my fix into the OCA codebase, that would be nice.

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

3 participants