تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
8716 أدوات العرض

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.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
مايو 15
6911
0
أكتوبر 24
866
1
مارس 23
4713
1
نوفمبر 15
13114
2
يوليو 25
6548