This question has been flagged
3765 Views

In v10 POS module, I get an error when defining a client for the invoice and clicking on the invoice button in the payment screen.  I cant find any variable called node in the js code...

When selecting a customer and clicking on invoice and then clicking on Validate I get this error:

TypeError: node is undefined http://localhost:8069/web/content/251-beb5427/web.assets_common.js:3038 Rastreo de error: get_file/$target<@http://localhost:8069/web/content/251-beb5427/web.assets_common.js:3038:360 dispatch@http://localhost:8069/web/content/251-beb5427/web.assets_common.js:637:378 add/elemData.handle@http://localhost:8069/web/content/251-beb5427/web.assets_common.js:610:151 print_web@http://localhost:8069/web/content/960-ec55228/point_of_sale.assets.js:397:907 print@http://localhost:8069/web/content/960-ec55228/point_of_sale.assets.js:397:1414 handle_auto_print@http://localhost:8069/web/content/960-ec55228/point_of_sale.assets.js:397:410 show@http://localhost:8069/web/content/960-ec55228/point_of_sale.assets.js:397:325 OdooClass.extend/</prototype[name]</<@http://localhost:8069/web/content/251-beb5427/web.assets_common.js:3010:556 show_screen@http://localhost:8069/web/content/960-ec55228/point_of_sale.assets.js:338:28 finalize_validation/<@http://localhost:8069/web/content/960-ec55228/point_of_sale.assets.js:419:991 fire@http://localhost:8069/web/content/251-beb5427/web.assets_common.js:541:281 fireWith@http://localhost:8069/web/content/251-beb5427/web.assets_common.js:546:198 Deferred/</deferred[tuple[0]]@http://localhost:8069/web/content/251-beb5427/web.assets_common.js:548:31 push_and_invoice_order/</<@http://localhost:8069/web/content/960-ec55228/point_of_sale.assets.js:131:429 then/</</<@http://localhost:8069/web/content/251-beb5427/web.assets_common.js:547:678 fire@http://localhost:8069/web/content/251-beb5427/web.assets_common.js:541:281 fireWith@http://localhost:8069/web/content/251-beb5427/web.assets_common.js:546:198 then/</</<@http://localhost:8069/web/content/251-beb5427/web.assets_common.js:547:849 fire@http://localhost:8069/web/content/251-beb5427/web.assets_common.js:541:281 fireWith@http://localhost:8069/web/content/251-beb5427/web.assets_common.js:546:198 Deferred/</deferred[tuple[0]]@http://localhost:8069/web/content/251-beb5427/web.assets_common.js:548:31 fire@http://localhost:8069/web/content/251-beb5427/web.assets_common.js:541:281 fireWith@http://localhost:8069/web/content/251-beb5427/web.assets_common.js:546:198 then/</</<@http://localhost:8069/web/content/251-beb5427/web.assets_common.js:547:849 fire@http://localhost:8069/web/content/251-beb5427/web.assets_common.js:541:281 fireWith@http://localhost:8069/web/content/251-beb5427/web.assets_common.js:546:198 then/</</<@http://localhost:8069/web/content/251-beb5427/web.assets_common.js:547:849 fire@http://localhost:8069/web/content/251-beb5427/web.assets_common.js:541:281 fireWith@http://localhost:8069/web/content/251-beb5427/web.assets_common.js:546:198 done@http://localhost:8069/web/content/251-beb5427/web.assets_common.js:937:86 callback@http://localhost:8069/web/content/251-beb5427/web.assets_common.js:957:15

Here is the model.js code:

https://pastebin.com/QuZTP2Ha

It only happens when I select the client and click Invoice in the payment screen:

Avatar
Discard
Author

I discovered that if I remove the automatic printing receipt checkbox in POS Settings, I dont get the error anymore.