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.

1

How to show a text input popup

By
Matthieu
on 5/25/16, 10:52 AM 427 views

Hello,

I'm currently working on the point of sale of Odoo 9 and I'm trying to use a textinput with this function : https://github.com/odoo/odoo/blob/9.0/addons/point_of_sale/static/src/js/popups.js#L175

My code is here :

this.gui.show_popup('textinput',{

  'title':_t('Code ?'),

  'value': code,

  'confirm': function(value) {

   order.enter_code(value); // My function to save the value in the input box

  },

});

Nothing appear when the code is running but when I do an infinite loop after this, after my browser say me to stop the script, we can see this window :

http://i.imgur.com/25EI3Pl.png


Please, tell me what is wrong with my code, I don't understand my mistake ! :(


Best regards.

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: 5/25/16, 10:52 AM
Seen: 427 times
Last updated: 6/1/16, 1:44 PM