Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
8723 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 5 15
6914
0
thg 10 24
868
1
thg 3 23
4715
1
thg 11 15
13116
2
thg 7 25
6550