robert2206 7 rokov pred
rodič
commit
cc1db784ba

+ 3 - 3
static/src/js/widgets/expired_account_counters.js

@@ -81,9 +81,9 @@ function expired_account_counters (widget) {
             var defer = $.Deferred();
             var fields =['id','name', 'currency_id', 'logo'];
             var domain =[['id', '=', 1]];
-            var resComapy = new model.web.Model('res.company');
+            var resCompany = new model.web.Model('res.company');
 
-            resComapy.query(fields).filter(domain).all().then(function (results){
+            resCompany.query(fields).filter(domain).all().then(function (results) {
                 defer.resolve(results);
             });
 
@@ -107,7 +107,7 @@ function expired_account_counters (widget) {
 
             self.$el.find('.widget-content.widget-loading').css('display','none');
             self.$el.find('.widget-content').find('a').text(accounting.formatNumber(residual,2, ".", ","));
-            self.$el.find('.widget-footer').find('span').text("Monto en "+company);
+            self.$el.find('.widget-footer').find('span').text("Monto en " + company);
             self.$el.find('.grid-stack-item-content dashboard').unblock();
         }
     });

+ 1 - 1
static/src/js/widgets/ranking_sales_product.js

@@ -123,12 +123,12 @@ function ranking_sales_product (widget) {
                 return b.qty - a.qty
             });
 
+            self.$el.unblock();
             self.$el.find('.widget-content.widget-loading').css('display','none');
             var fecha = new Date();
             var meses = new Array ("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre");
             self.$el.find('.widget-title').find('span').text("Ranking de Producto mas Vendido Mes de " + meses[fecha.getMonth()]);
             self.fetchChart(ranking);
-            self.$el.unblock()
         },
         // get line
         getInvoiceLine: function (product_id){