|  | @@ -11,7 +11,7 @@ function chart_pos_order_salesman (widget) {
 | 
	
		
			
				|  |  |          modelId: [],
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          events: {
 | 
	
		
			
				|  |  | -            // 'click canvas': 'showCustomers'
 | 
	
		
			
				|  |  | +            
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          init: function (parent) {
 | 
	
		
			
				|  |  |              this._super(parent, {
 | 
	
	
		
			
				|  | @@ -112,7 +112,6 @@ function chart_pos_order_salesman (widget) {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              return defer;
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  | -        // Obtener facturas por cada clientes
 | 
	
		
			
				|  |  |          getPosOrder:function(partner_id) {
 | 
	
		
			
				|  |  |              var self = this;
 | 
	
		
			
				|  |  |              return _.flatten(_.filter(self.PosOrder,function (inv) {
 | 
	
	
		
			
				|  | @@ -176,7 +175,6 @@ function chart_pos_order_salesman (widget) {
 | 
	
		
			
				|  |  |                  label.push(item.name);
 | 
	
		
			
				|  |  |                  body.push(item.countPosOrder);
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -            // console.log(body);
 | 
	
		
			
				|  |  |              // Global method for setting Y axis number format.
 | 
	
		
			
				|  |  |              Chart.scaleService.updateScaleDefaults('linear', {
 | 
	
		
			
				|  |  |                ticks: {
 | 
	
	
		
			
				|  | @@ -208,24 +206,14 @@ function chart_pos_order_salesman (widget) {
 | 
	
		
			
				|  |  |                  },
 | 
	
		
			
				|  |  |                  options: {
 | 
	
		
			
				|  |  |                      responsive: true,
 | 
	
		
			
				|  |  | -                    // title: {
 | 
	
		
			
				|  |  | -                    //     display: false,
 | 
	
		
			
				|  |  | -                    // },
 | 
	
		
			
				|  |  |                      hover: {
 | 
	
		
			
				|  |  |                          mode: 'nearest',
 | 
	
		
			
				|  |  |                          intersect: true
 | 
	
		
			
				|  |  |                      },
 | 
	
		
			
				|  |  | -                   // scales: {
 | 
	
		
			
				|  |  | -                   //     xAxes: [{ stacked: true }],
 | 
	
		
			
				|  |  | -                   //     yAxes: [{ stacked: true }],
 | 
	
		
			
				|  |  | -                   // },
 | 
	
		
			
				|  |  | -                   // legend: {
 | 
	
		
			
				|  |  | -                   //     display: false,
 | 
	
		
			
				|  |  | -                   // },
 | 
	
		
			
				|  |  |                      layout: {
 | 
	
		
			
				|  |  |                          padding: {
 | 
	
		
			
				|  |  | -                            top: 20,
 | 
	
		
			
				|  |  | -                            bottom: 0,
 | 
	
		
			
				|  |  | +                            top: 30,
 | 
	
		
			
				|  |  | +                            bottom: 10,
 | 
	
		
			
				|  |  |                              left : 0,
 | 
	
		
			
				|  |  |                              rigth: 0,
 | 
	
		
			
				|  |  |                          }
 | 
	
	
		
			
				|  | @@ -233,26 +221,5 @@ function chart_pos_order_salesman (widget) {
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              });
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  | -        // llamar a la lista
 | 
	
		
			
				|  |  | -        // showCustomers: function (e) {
 | 
	
		
			
				|  |  | -        //     var self = this;
 | 
	
		
			
				|  |  | -        //     if (self.ranking.length === 0 ) {
 | 
	
		
			
				|  |  | -        //         model.web.notification.do_warn("Atención","Sin datos");
 | 
	
		
			
				|  |  | -        //         return
 | 
	
		
			
				|  |  | -        //     }
 | 
	
		
			
				|  |  | -        //     var hoy = moment().format('YYYY-MM-DD');
 | 
	
		
			
				|  |  | -        //     var partner_id = _.map(self.ranking,function(map){
 | 
	
		
			
				|  |  | -        //         return map.id;
 | 
	
		
			
				|  |  | -        //     })
 | 
	
		
			
				|  |  | -        //     this.do_action({
 | 
	
		
			
				|  |  | -        //         name: "Listado de clientes con más compras",
 | 
	
		
			
				|  |  | -        //         type: 'ir.actions.act_window',
 | 
	
		
			
				|  |  | -        //         res_model: "res.partner",
 | 
	
		
			
				|  |  | -        //         views: [[false,'list'],[self.modelId[1],'form']],
 | 
	
		
			
				|  |  | -        //         target: 'current',
 | 
	
		
			
				|  |  | -        //         domain: [['id', 'in', partner_id]],
 | 
	
		
			
				|  |  | -        //         context: {},
 | 
	
		
			
				|  |  | -        //     });
 | 
	
		
			
				|  |  | -        // }
 | 
	
		
			
				|  |  |      });
 | 
	
		
			
				|  |  |  }
 |