[16.0][web_help] Bug: cannot generate HTML reports anymore
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- frontend
Research direction
Start with the web_help frontend code involved in standard HTML report actions and compare the flow with PDF and XLSX reports. Reproduce the issue by installing web_help and generating an HTML report; the reported failure is an OWL ControlPanel error reading resModel. The issue is resolved when HTML reports load in the Odoo interface without that error.
Written by the indexing model from the issue text.
Description
Module: web_help
Version : 16.0
When trying to generate an HTML report, a javascript (front-end) error is issued. PDF and XLSX report still works fine.
The HTML report is actually well generated (and accessible through link like http://[server-address]/report/html/[module].[report_name]/[id] (e.g. : http://localhost:8069/report/html/hr_timesheet_report.report/1)
However, it cannot be loaded in Odoo interface after playing a standard HTML report action.
The following error is thrown by OWL (so it's a front-end error, no Python/back-end):
Caused by: TypeError: Cannot read properties of undefined (reading 'resModel')
at ControlPanel.template (eval at compile (https://erp-dev.aluval.fr/web/assets/debug/web.assets_common.js:22001:20), <anonymous>:86:58) (/web/static/lib/owl/owl.js:5598)
at ControlPanel.template (eval at compile (https://erp-dev.aluval.fr/web/assets/debug/web.assets_common.js:22001:20), <anonymous>:18:27) (/web/static/lib/owl/owl.js:5598)
at Fiber._render (https://erp-dev.aluval.fr/web/assets/debug/web.assets_common.js:18125:38) (/web/static/lib/owl/owl.js:1722)
at Fiber.render (https://erp-dev.aluval.fr/web/assets/debug/web.assets_common.js:18117:18) (/web/static/lib/owl/owl.js:1714)
at ComponentNode.initiateRender (https://erp-dev.aluval.fr/web/assets/debug/web.assets_common.js:18788:23) (/web/static/lib/owl/owl.js:2385)
Steps to reproduce the behavior:
- Install a module generating an HTML report (e.g. account_move_reporting or hr_timesheet_reporting)
- Generate HTML report: it works fine
- Install web_help
- Generate HTML report: it fails
- Dominant language
- JavaScript
- Stars
- 1.2k
- Forks
- 2.2k
- Avg merge
- 3d 15h
- Merged PRs (30d)
- 30
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OCA/web
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
[19.0] web_timeline: ValueError "Invalid field 'date_start:month'" when grouping by a date fieldPossibly taken @stferraro claimed this today. Openbug
Difficulty 3/5 1-2 days Newbie friendliness 25/100
Maintainers usually reply within 1 day
-
[19.0] web_m2x_options: system parameter + m2o options not working properly when no recordsPossibly taken @CristhianAC claimed this 11 days ago. Openbug
Difficulty 3/5 1-2 days Newbie friendliness 58/100
Maintainers usually reply within 1 day
-
Migration to version 20.0Possibly taken A pull request linked to this issue is open or already merged. Openhelp wanted no stale work in progress
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 1-2 days Newbie friendliness 45/100
Maintainers usually reply within 1 day
Similar issues
-
check:passed feeds:add
Difficulty 1/5 Under an hour Newbie friendliness 66/100
-
Wallet functions throws TypeError when the wallet has no account IDPossibly taken @Medhansh-741 claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
hiero-ledger/hiero-sdk-js#4781 · 1 comment ·
Maintainers usually reply within 1 day
-
bug package:workers-shared
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
cloudflare/workers-sdk#16924 · 1 comment ·
Maintainers usually reply within 1 day
-
dashboard
Difficulty 2/5 Half a day Newbie friendliness 78/100
damodharg6/payledger#9 ·
-
parse: child keys like `007`, `1e3`, `0x1f`, `-1` make the parent an empty array and hide the valueOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100