浏览代码

[FIX] Corregir semantica y ortografia

Adrielso 7 年之前
父节点
当前提交
91e4447fa1

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

@@ -106,25 +106,25 @@ 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-content').find('a').text(accounting.formatNumber(residual,2, ".", ",")).append(" <small>"+company+"</small>");
             self.$el.find('.grid-stack-item-content dashboard').unblock();
         },
+
         showCustomers: function (e) {
             var self = this;
             var hoy =moment().format('YYYY-MM-DD');
             var move_id = _.flatten(_.map(self.moveLine, function (map) {
                 return map.id;
             }));
-            this.do_action({
-                name:"Listado de Clientes con Deuda Atrasadas",
+        console.log(    this.do_action({
+                name:"Listado de clientes con deudas atrasadas",
                 type: 'ir.actions.act_window',
                 res_model: "res.partner",
                 views: [[false, 'list']],
                 target: 'new',
                 domain: [['unreconciled_aml_ids', '=', move_id]],
                 context: {},
-            });
+            }));
         }
     });
 }

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

@@ -107,8 +107,8 @@ function expired_account_counters_now (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-content').find('a').text(accounting.formatNumber(residual,2, ".", ",")).append(' <small>'+company+'</small>');
+            // self.$el.find('.widget-footer').find('span').text("Monto en " + company);
             self.$el.find('#morosidad').unblock()
         },
         showCustomers: function (e) {
@@ -118,7 +118,7 @@ function expired_account_counters_now (widget) {
                 return map.id;
             }));
             this.do_action({
-                name:"Listado de Clientes por Cobrar Hoy",
+                name:"Listado de clientes por cobrar hoy",
                 type: 'ir.actions.act_window',
                 res_model: "res.partner",
                 views: [[false, 'list']],

+ 2 - 2
static/src/js/widgets/invoice_today_counters.js

@@ -60,7 +60,7 @@ function invoice_today_counters (widget) {
 
             self.$el.find('.widget-content.widget-loading').css('display','none');
             self.$el.find('.widget-content').find('a').text(accounting.formatNumber(cat, ".", ","));
-            self.$el.find('.widget-footer').find('span').text("Facturas Creadas en "+ fecha.getDate() + "/" + (fecha.getMonth() + 1) + "/" + fecha.getFullYear());
+            // self.$el.find('.widget-footer').find('span').text("Facturas Creadas en "+ fecha.getDate() + "/" + (fecha.getMonth() + 1) + "/" + fecha.getFullYear());
             self.$el.find('#morosidad').unblock();
         },
         showCustomers: function (e) {
@@ -68,7 +68,7 @@ function invoice_today_counters (widget) {
 
 
             this.do_action({
-                name:"Facturas Realizada Hoy",
+                name:"Facturas realizadas hoy",
                 type: 'ir.actions.act_window',
                 res_model: "account.invoice",
                 views: [[false, 'list']],

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

@@ -71,7 +71,7 @@ function missing_product (widget) {
         },
         showCustomers: function (e) {
             this.do_action({
-                name:"Listado de Productos sin Stock",
+                name:"Listado de productos faltan-tes",
                 type: 'ir.actions.act_window',
                 res_model: "product.product",
                 views: [[false, 'list']],

+ 8 - 3
static/src/js/widgets/monthly_expenses.js

@@ -9,20 +9,24 @@ function monthly_expenses(widget) {
         accountInvoice:[],
         currencyRate :[],
         resCompany:[],
+
         events: {
             'click a': 'showCustomers',
             'click h2': 'showCustomers',
         },
+
         init: function (parent) {
             this._super(parent, {
                 width : 3,
                 height: 2
             });
         },
+
         start: function () {
             var self = this;
             self.fetchInitial();
         },
+
         fetchInitial: function(){
             var self = this;
             self.$el.find('#morosidad').block({
@@ -75,6 +79,7 @@ function monthly_expenses(widget) {
             });
             return defer;
         },
+
         fetchCurrency: function () {
             var defer = $.Deferred();
             var currency_Rate = new model.web.Model('res.currency.rate');
@@ -98,6 +103,7 @@ function monthly_expenses(widget) {
 
             return defer;
         },
+
         fetchReduceVoucher: function () {
             var self = this;
             var newVoucher;
@@ -129,8 +135,7 @@ function monthly_expenses(widget) {
                 return map.currency_id[1];
             });
             self.$el.find('.widget-content.widget-loading').css('display','none');
-            self.$el.find('.widget-content').find('a').text(accounting.formatNumber(cat,2, ".", ","));
-            self.$el.find('.widget-footer').find('span').text("Monto en "+ company);
+            self.$el.find('.widget-content').find('a').text(accounting.formatNumber(cat,2, ".", ",")).append(' <small>'+company+'</small>');
             self.$el.find('#morosidad').unblock();
         },
         getCutrrencyRate: function (currency_id) {
@@ -156,7 +161,7 @@ function monthly_expenses(widget) {
             var number = _.map(self.accountInvoice,function(map){return map.number});
 
             this.do_action({
-                name:"Gastos del Mes",
+                name:"Listado de gastos del mes",
                 type: 'ir.actions.act_window',
                 res_model: "account.voucher",
                 views: [[false, 'list']],

+ 4 - 3
static/src/js/widgets/monthly_purchases.js

@@ -101,6 +101,7 @@ function monthly_purchases(widget) {
 
             return defer;
         },
+
         fetchReduceVoucher: function () {
             var self = this;
             var newVoucher;
@@ -133,8 +134,8 @@ function monthly_purchases(widget) {
             });
 
             self.$el.find('.widget-content.widget-loading').css('display','none');
-            self.$el.find('.widget-content').find('a').text(accounting.formatNumber(cat,2, ".", ","));
-            self.$el.find('.widget-footer').find('span').text("Monto en "+ company);
+            self.$el.find('.widget-content').find('a').text(accounting.formatNumber(cat,2, ".", ",")).append(' <small>'+company+'</small>');
+            // self.$el.find('.widget-footer').find('span').text("Monto en "+ company);
             self.$el.find('#morosidad').unblock();
         },
         getCutrrencyRate: function (currency_id) {
@@ -160,7 +161,7 @@ function monthly_purchases(widget) {
             var number = _.map(self.accountInvoice,function(map){return map.number});
 
             this.do_action({
-                name:"Compras del Mes ",
+                name:"Listado de compras del mes",
                 type: 'ir.actions.act_window',
                 res_model: "account.voucher",
                 views: [[false, 'list']],

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

@@ -127,15 +127,15 @@ function payments_today_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-content').find('a').text(accounting.formatNumber(residual, 2, ".", ",")).append(' <small>'+company+'</small>');
+            // self.$el.find('.widget-footer').find('span').text("Monto en "+ company);
             self.$el.find('#morosidad').unblock();
         },
         showCustomers: function (e) {
             var hoy =moment().format('YYYY-MM-DD');
 
             this.do_action({
-                name:"Cobros de Hoy",
+                name:"Listado de pagos realizados hoy",
                 type: 'ir.actions.act_window',
                 res_model: "account.voucher",
                 views: [[false, 'list']],

+ 2 - 2
static/src/js/widgets/ranking_sales_partner.js

@@ -104,7 +104,7 @@ function ranking_sales_partner (widget) {
 
             self.$el.unblock();
             self.$el.find('.widget-content.widget-loading').css('display','none');
-            self.$el.find('.widget-title').find('span').text("Ranking de Clientes Activos del Mes");
+            self.$el.find('.widget-title').find('span').text("Ranking de clientes con más compras en el mes");
             self.fetchChart(ranking);
         },
         // Generar Grafico
@@ -162,7 +162,7 @@ function ranking_sales_partner (widget) {
                 return map.id;
             })
             this.do_action({
-                name:"Ranking de Clientes Activos del Mes",
+                name:"Listado de clinete con más compras",
                 type: 'ir.actions.act_window',
                 res_model: "res.partner",
                 views: [[false, 'list']],

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

@@ -127,8 +127,8 @@ function ranking_sales_product (widget) {
             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 Productos más Vendidos del Mes de " + meses[fecha.getMonth()]);
-            self.$el.find('.widget-title').find('span').text("Ranking de Producto mas Vendido del Mes");
+            self.$el.find('.widget-title').find('span').text("Ranking de productos más vendidos del mes de " + meses[fecha.getMonth()]);
+            // self.$el.find('.widget-title').find('span').text("Ranking de productos más vendidos");
             self.ranking=ranking;
             self.fetchChart(ranking);
         },
@@ -194,7 +194,7 @@ function ranking_sales_product (widget) {
                 return map.id;
             })
             this.do_action({
-                name:"Ranking de Productos más Vendidos",
+                name:"Listado de productos más vendidos",
                 type: 'ir.actions.act_window',
                 res_model: "product.product",
                 views: [[false, 'list']],

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

@@ -127,15 +127,15 @@ function voucher_today_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-content').find('a').text(accounting.formatNumber(residual, 2, ".", ",")).append(' <small>'+company+'</small>');
+            // self.$el.find('.widget-footer').find('span').text("Monto en "+ company);
             self.$el.find('#morosidad').unblock();
         },
         showCustomers: function (e) {
             var hoy =moment().format('YYYY-MM-DD');
 
             this.do_action({
-                name:"Cobros de Hoy",
+                name:"Listado de cobros realizado en el día",
                 type: 'ir.actions.act_window',
                 res_model: "account.voucher",
                 views: [[false, 'list']],

+ 2 - 2
static/src/xml/widgets/expired_account_counters.xml

@@ -6,13 +6,13 @@
             <div class="grid-stack-item-content dashboard">
                 <h2 class="widget-title">
                     <i class="fa fa-money" aria-hidden="true"></i>
-                    Deudas  Atrasadas
+                    Tenés un monto de
                 </h2>
                 <div class="widget-content">
                     <a></a>
                 </div>
                 <div class="widget-footer">
-                    <span></span>
+                    <span>en deudas atrasadas</span>
                 </div>
                 <div class="widget-content widget-loading">
                     <i class='fa fa-cog fa-spin fa-3x fa-fw'></i>

+ 2 - 2
static/src/xml/widgets/expired_account_counters_now.xml

@@ -6,13 +6,13 @@
             <div class="grid-stack-item-content dashboard">
                 <h2 class="widget-title">
                     <i class="fa fa-money" aria-hidden="true"> </i>
-                    Deudas por Cobrar Hoy
+                    Tenés para cobrar 
                 </h2>
                 <div  class="widget-content">
                     <a></a>
                 </div>
                 <div class="widget-footer">
-                    <span></span>
+                    <span>en el día de hoy</span>
                 </div>
                 <div class="widget-content widget-loading">
                     <i class='fa fa-cog fa-spin fa-3x fa-fw'></i>

+ 2 - 2
static/src/xml/widgets/invoice_today_counters.xml

@@ -6,13 +6,13 @@
             <div class="grid-stack-item-content dashboard">
                 <h2 class="widget-title">
                     <i class="fa fa-files-o" aria-hidden="true"></i>
-                    Facturas Realizada Hoy
+                    Has realizado hoy
                 </h2>
                 <div class="widget-content">
                     <a></a>
                 </div>
                 <div class="widget-footer">
-                    <span></span>
+                    <span>facturas</span>
                 </div>
                 <div class="widget-content widget-loading">
                     <i class='fa fa-cog fa-spin fa-3x fa-fw'></i>

+ 2 - 2
static/src/xml/widgets/missing_product.xml

@@ -6,13 +6,13 @@
             <div class="grid-stack-item-content dashboard">
                 <h2 class="widget-title">
                     <i class="fa fa-list-alt" aria-hidden="true"></i>
-                    Productos sin Stock
+                    Tenés faltando
                 </h2>
                 <div class="widget-content">
                     <a></a>
                 </div>
                 <div class="widget-footer">
-                    <span></span>
+                    <span>productos</span>
                 </div>
                 <div class="widget-content widget-loading">
                     <i class='fa fa-cog fa-spin fa-3x fa-fw'></i>

+ 2 - 2
static/src/xml/widgets/monthly_expenses.xml

@@ -6,13 +6,13 @@
             <div class="grid-stack-item-content dashboard">
                 <h2 class="widget-title">
                     <i class="fa fa-money" aria-hidden="true"> </i>
-                    Gastos del Mes
+                    Has hecho este mes
                 </h2>
                 <div class="widget-content">
                     <a></a>
                 </div>
                 <div class="widget-footer">
-                    <span></span>
+                    <span>en gastos</span>
                 </div>
                 <div class="widget-content widget-loading">
                     <i class='fa fa-cog fa-spin fa-3x fa-fw'></i>

+ 2 - 2
static/src/xml/widgets/monthly_purchases.xml

@@ -6,13 +6,13 @@
             <div class="grid-stack-item-content dashboard">
                 <h2 class="widget-title">
                     <i class="fa fa-money" aria-hidden="true"> </i>
-                    Compras del Mes 
+                    Has hecho este mes 
                 </h2>
                 <div class="widget-content">
                     <a></a>
                 </div>
                 <div class="widget-footer">
-                    <span></span>
+                    <span>en compras</span>
                 </div>
                 <div class="widget-content widget-loading">
                     <i class='fa fa-cog fa-spin fa-3x fa-fw'></i>

+ 2 - 2
static/src/xml/widgets/payments_today_counters.xml

@@ -6,13 +6,13 @@
             <div class="grid-stack-item-content dashboard">
                 <h2 class="widget-title">
                     <i class="fa fa-money" aria-hidden="true"> </i>
-                    Pagos de Hoy
+                    Has hecho hoy
                 </h2>
                 <div class="widget-content">
                     <a></a>
                 </div>
                 <div class="widget-footer">
-                    <span></span>
+                    <span>en pagos</span>
                 </div>
                 <div class="widget-content widget-loading">
                     <i class='fa fa-cog fa-spin fa-3x fa-fw'></i>

+ 1 - 1
static/src/xml/widgets/ranking_sales_partner.xml

@@ -5,7 +5,7 @@
         <t t-call="WidgetBaseTmpl">
             <h2  class="widget-title">
                 <i class="fa fa-bar-chart" aria-hidden="true"></i>
-                <span>Ranking de Clientes Activos del Mes</span>
+                <span>Ranking de clientes con más compras en el mes</span>
             </h2>
             <div class="widget-content">
                 <canvas></canvas>

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

@@ -5,7 +5,7 @@
         <t t-call="WidgetBaseTmpl">
             <h2  class="widget-title">
                 <i class="fa fa-bar-chart" aria-hidden="true"></i>
-                <span>Ranking de Productos más Vendidos</span>
+                <span>Ranking de productos más vendidos</span>
             </h2>
             <div class="widget-content">
                 <canvas></canvas>

+ 2 - 2
static/src/xml/widgets/voucher_today_counters.xml

@@ -6,13 +6,13 @@
             <div class="grid-stack-item-content dashboard">
                 <h2 class="widget-title">
                     <i class="fa fa-money" aria-hidden="true"> </i>
-                    Cobros del Día
+                    Has hecho hoy
                 </h2>
                 <div class="widget-content">
                     <a></a>
                 </div>
                 <div class="widget-footer">
-                    <span></span>
+                    <span>en cobros</span>
                 </div>
                 <div class="widget-content widget-loading">
                     <i class='fa fa-cog fa-spin fa-3x fa-fw'></i>