odoo/odoo#195423
Created by fw-bot
            Closed
        
                - label
- odoo-dev:saas-17.2-17.0-point_of_sale-console-error-unknown-issue-in-printHtml-jula-Deou-fw
- head
- a5a87d01907e3eab290e31666b42dd614c5a0e19
| odoo/odoo | |
|---|---|
| 17.0 | #194985 | 
| saas-17.2 | #195423 | 
| saas-17.4 | #197130 | 
| 18.0 | #197235 | 
| saas-18.1 | #197383 | 
| saas-18.2 | #198877 | 
| saas-18.3 | |
| saas-18.4 | |
| 19.0 | |
| master | #198886 | 
[FW][FIX] point_of_sale: `console.error` unknown issue in `printHtml`
Current behavior before commit:
If an unexpected error that has no body is thrown inside printHtml, the popup shows "undefinedDo you want to print using the web printer?" and nothing is written in the console, making it impossible to troubleshoot.
Description of the fix:
Don't print "undefined" in the popup if the error has no body but write the error in the console.
Forward-Port-Of: #194985