Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Uncaught TypeError: Cannot read property 'get' of undefined?

By
splucena
on 6/26/14, 9:41 PM 4,134 views

I'm using eclipse as an IDE, ubuntu platform, OpenERP Version 7.0-20140605-231138

I am trying to replicate the PoS but I got stuck on this error. I really don't understand the error logs, if someone could just point me to the right direction that will be great.

Firefox: TypeError: dict.widget.pos is undefined, Error: QWeb2 - template['OrderWidget']: Runtime Error: TypeError: dict.widget.pos is undefined

  1. Chrome: Uncaught TypeError: Cannot read property 'get' of undefined VM4180:13

    Everything else is working except for the touchscreen interface where you create a new session. But when I try to hook the javascript files to the origintal Point of Sale it works. I have check and double check made sure that they have the same content.

    1. (anonymous function)VM4180:13

    2. QWeb2.Engine.QWeb2.tools.extend._renderqweb2.js:340

    3. QWeb2.Engine.QWeb2.tools.extend.renderqweb2.js:332

    4. QWeb2.Engine.QWeb2.tools.extend._renderqweb2.js:362

    5. QWeb2.Engine.QWeb2.tools.extend.renderqweb2.js:332

    6. instance.web.Widget.instance.web.Controller.extend.renderElementcorelib.js:720

    7. module.OrderWidget.module.PoscBaseWidget.extend.renderElementposc_widgets.js:214

    8. prototype.(anonymous function)corelib.js:113

    9. instance.web.Widget.instance.web.Controller.extend.__widgetRenderAndInsertcorelib.js:691

    10. instance.web.Widget.instance.web.Controller.extend.replacecorelib.js:686

    11. module.PoscWidget.module.PoscBaseWidget.extend.build_widgetsposc_widgets.js:982

    12. (anonymous function)posc_widgets.js:879

    13. firejquery-1.8.3.js:974

    14. self.fireWithjquery-1.8.3.js:1084

    15. self.firejquery-1.8.3.js:1091

    16. (anonymous function)posc_models.js:67

    17. firejquery-1.8.3.js:974

    18. self.fireWithjquery-1.8.3.js:1084

    19. (anonymous function)jquery-1.8.3.js:1136

    20. firejquery-1.8.3.js:974

    21. self.fireWithjquery-1.8.3.js:1084

    22. self.firejquery-1.8.3.js:1091

    23. firejquery-1.8.3.js:974

    24. self.fireWithjquery-1.8.3.js:1084

    25. (anonymous function)jquery-1.8.3.js:1136

    26. firejquery-1.8.3.js:974

    27. self.fireWithjquery-1.8.3.js:1084

    28. self.firejquery-1.8.3.js:1091

    29. (anonymous function)corelib.js:1020

    30. (anonymous function)jquery-1.8.3.js:1129

    31. firejquery-1.8.3.js:974

    32. self.fireWithjquery-1.8.3.js:1084

    33. donejquery-1.8.3.js:7803

    34. callback

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 6/26/14, 9:41 PM
Seen: 4134 times
Last updated: 4/22/16, 5:57 AM