ソースを参照

[ADD] Agregado buscar por referencia interna y por EAN13

Rodney Enciso Arias 7 年 前
コミット
f798cd8733
2 ファイル変更3 行追加4 行削除
  1. 2 2
      .scannerwork/report-task.txt
  2. 1 2
      static/src/js/sale_order_curve.js

+ 2 - 2
.scannerwork/report-task.txt

@@ -1,5 +1,5 @@
 projectKey=eiru:sale:order
 serverUrl=http://181.40.66.126:9000
 dashboardUrl=http://181.40.66.126:9000/dashboard/index/eiru:sale:order
-ceTaskId=AV-mMoS_LmS3QZZeLmup
-ceTaskUrl=http://181.40.66.126:9000/api/ce/task?id=AV-mMoS_LmS3QZZeLmup
+ceTaskId=AV-63gSkLmS3QZZeLmuq
+ceTaskUrl=http://181.40.66.126:9000/api/ce/task?id=AV-63gSkLmS3QZZeLmuq

+ 1 - 2
static/src/js/sale_order_curve.js

@@ -145,7 +145,7 @@ openerp.eiru_sale_order = function (instance, local) {
                 });
                 $('#productSearch').autocomplete({
                     source: results,
-                    minLength: 3,
+                    minLength: 4,
                     response: function (e, ui){
                         if (ui.content instanceof Array && ui.content.length === 1) {
                             selectProduct = ui.content[0];    
@@ -189,7 +189,6 @@ openerp.eiru_sale_order = function (instance, local) {
 
         factInsertProduct:function(selectProduct){
             var self = this;
-            console.log(selectProduct);
             var product = selectProduct.value.split('-');
             var variant = self.getProductProduct(product[0]);
             var qty = 1;