|
@@ -596,48 +596,48 @@ openerp.eiru_reporting = function (instance, local) {
|
|
|
self.fecthInitial();
|
|
|
},
|
|
|
// Redirecionar
|
|
|
- renderReport: function () {
|
|
|
- var self = this;
|
|
|
-
|
|
|
- var container = this.$el.closest('.oe_form_sheet.oe_form_sheet_width');
|
|
|
- this.$el.closest('.report_view').remove();
|
|
|
- container.find('.report_view').show({
|
|
|
- effect: 'fade',
|
|
|
- duration: 200,
|
|
|
- });
|
|
|
- },
|
|
|
- // Verificar el modelo
|
|
|
- checkModel : function(model){
|
|
|
- var self = this;
|
|
|
- return _.filter(self.modules,function(item){return item === model});
|
|
|
- },
|
|
|
- // Lanzar el mensaje
|
|
|
- showMensaje : function(modelos){
|
|
|
- $("#dialog" ).dialog({
|
|
|
- autoOpen: true,
|
|
|
- resizable: false,
|
|
|
- modal: true,
|
|
|
- title: 'Atención',
|
|
|
- width: 500,
|
|
|
- open: function() {
|
|
|
- $(this).html('Lo sentimos , pero no contás con las configuraciones adecuado para manipular este informe.\nPóngase en contacto con el administrador del sistema (referencia : '+modelos+' )');
|
|
|
- },
|
|
|
- show: {
|
|
|
- effect: "fade",
|
|
|
- duration: 200
|
|
|
- },
|
|
|
- hide: {
|
|
|
- effect: "fade",
|
|
|
- duration: 200
|
|
|
- },
|
|
|
- buttons: {
|
|
|
- Aceptar: function() {
|
|
|
- $(this).dialog('close');
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- return
|
|
|
- },
|
|
|
+ // renderReport: function () {
|
|
|
+ // var self = this;
|
|
|
+ //
|
|
|
+ // var container = this.$el.closest('.oe_form_sheet.oe_form_sheet_width');
|
|
|
+ // this.$el.closest('.report_view').remove();
|
|
|
+ // container.find('.report_view').show({
|
|
|
+ // effect: 'fade',
|
|
|
+ // duration: 200,
|
|
|
+ // });
|
|
|
+ // },
|
|
|
+ // // Verificar el modelo
|
|
|
+ // checkModel : function(model){
|
|
|
+ // var self = this;
|
|
|
+ // return _.filter(self.modules,function(item){return item === model});
|
|
|
+ // },
|
|
|
+ // // Lanzar el mensaje
|
|
|
+ // showMensaje : function(modelos){
|
|
|
+ // $("#dialog" ).dialog({
|
|
|
+ // autoOpen: true,
|
|
|
+ // resizable: false,
|
|
|
+ // modal: true,
|
|
|
+ // title: 'Atención',
|
|
|
+ // width: 500,
|
|
|
+ // open: function() {
|
|
|
+ // $(this).html('Lo sentimos , pero no contás con las configuraciones adecuado para manipular este informe.\nPóngase en contacto con el administrador del sistema (referencia : '+modelos+' )');
|
|
|
+ // },
|
|
|
+ // show: {
|
|
|
+ // effect: "fade",
|
|
|
+ // duration: 200
|
|
|
+ // },
|
|
|
+ // hide: {
|
|
|
+ // effect: "fade",
|
|
|
+ // duration: 200
|
|
|
+ // },
|
|
|
+ // buttons: {
|
|
|
+ // Aceptar: function() {
|
|
|
+ // $(this).dialog('close');
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // return
|
|
|
+ // },
|
|
|
// Fecha
|
|
|
fecthFecha: function() {
|
|
|
var to;
|
|
@@ -673,7 +673,7 @@ openerp.eiru_reporting = function (instance, local) {
|
|
|
// Metodo inicial
|
|
|
fecthInitial: function(){
|
|
|
var self = this;
|
|
|
- self.modules = instance._modules;
|
|
|
+ // self.modules = instance._modules;
|
|
|
|
|
|
self.fecthJournalStore().then(function(accountJournal){
|
|
|
self.accountJournal=accountJournal;
|
|
@@ -701,17 +701,17 @@ openerp.eiru_reporting = function (instance, local) {
|
|
|
self.companyCurrency = companyCurrency;
|
|
|
return self.fecthDataVoucher(self.accountVoucher,self.accountJournal);
|
|
|
});
|
|
|
- return self.renderReport()
|
|
|
+ // return self.renderReport()
|
|
|
},
|
|
|
// Journal
|
|
|
fecthJournalStore: function(){
|
|
|
var self = this;
|
|
|
var defer = $.Deferred();
|
|
|
- var modules = self.checkModel('multi_store');
|
|
|
- if (modules.length <= 0){
|
|
|
- self.showMensaje('multi_store');
|
|
|
- return defer;
|
|
|
- }
|
|
|
+ // var modules = self.checkModel('multi_store');
|
|
|
+ // if (modules.length <= 0){
|
|
|
+ // self.showMensaje('multi_store');
|
|
|
+ // return defer;
|
|
|
+ // }
|
|
|
|
|
|
var journal = new instance.web.Model('res.store');
|
|
|
var field=['id', 'name','out_invoice_id','journal_ids'];
|
|
@@ -1096,48 +1096,48 @@ openerp.eiru_reporting = function (instance, local) {
|
|
|
self.fecthInitial();
|
|
|
},
|
|
|
// Redirecionar
|
|
|
- renderReport: function () {
|
|
|
- var self = this;
|
|
|
-
|
|
|
- var container = this.$el.closest('.oe_form_sheet.oe_form_sheet_width');
|
|
|
- this.$el.closest('.report_view').remove();
|
|
|
- container.find('.report_view').show({
|
|
|
- effect: 'fade',
|
|
|
- duration: 200,
|
|
|
- });
|
|
|
- },
|
|
|
+ // renderReport: function () {
|
|
|
+ // var self = this;
|
|
|
+ //
|
|
|
+ // var container = this.$el.closest('.oe_form_sheet.oe_form_sheet_width');
|
|
|
+ // this.$el.closest('.report_view').remove();
|
|
|
+ // container.find('.report_view').show({
|
|
|
+ // effect: 'fade',
|
|
|
+ // duration: 200,
|
|
|
+ // });
|
|
|
+ // },
|
|
|
// Verificar el modelo
|
|
|
- checkModel : function(model){
|
|
|
- var self = this;
|
|
|
- return _.filter(self.modules,function(item){return item === model});
|
|
|
- },
|
|
|
- // Lanzar el mensaje
|
|
|
- showMensaje : function(modelos){
|
|
|
- $("#dialog" ).dialog({
|
|
|
- autoOpen: true,
|
|
|
- resizable: false,
|
|
|
- modal: true,
|
|
|
- title: 'Atención',
|
|
|
- width: 500,
|
|
|
- open: function() {
|
|
|
- $(this).html('Lo sentimos , pero no contás con las configuraciones adecuado para manipular este informe.\nPóngase en contacto con el administrador del sistema (referencia : '+modelos+' )');
|
|
|
- },
|
|
|
- show: {
|
|
|
- effect: "fade",
|
|
|
- duration: 200
|
|
|
- },
|
|
|
- hide: {
|
|
|
- effect: "fade",
|
|
|
- duration: 200
|
|
|
- },
|
|
|
- buttons: {
|
|
|
- Aceptar: function() {
|
|
|
- $(this).dialog('close');
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- return
|
|
|
- },
|
|
|
+ // checkModel : function(model){
|
|
|
+ // var self = this;
|
|
|
+ // return _.filter(self.modules,function(item){return item === model});
|
|
|
+ // },
|
|
|
+ // // Lanzar el mensaje
|
|
|
+ // showMensaje : function(modelos){
|
|
|
+ // $("#dialog" ).dialog({
|
|
|
+ // autoOpen: true,
|
|
|
+ // resizable: false,
|
|
|
+ // modal: true,
|
|
|
+ // title: 'Atención',
|
|
|
+ // width: 500,
|
|
|
+ // open: function() {
|
|
|
+ // $(this).html('Lo sentimos , pero no contás con las configuraciones adecuado para manipular este informe.\nPóngase en contacto con el administrador del sistema (referencia : '+modelos+' )');
|
|
|
+ // },
|
|
|
+ // show: {
|
|
|
+ // effect: "fade",
|
|
|
+ // duration: 200
|
|
|
+ // },
|
|
|
+ // hide: {
|
|
|
+ // effect: "fade",
|
|
|
+ // duration: 200
|
|
|
+ // },
|
|
|
+ // buttons: {
|
|
|
+ // Aceptar: function() {
|
|
|
+ // $(this).dialog('close');
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // return
|
|
|
+ // },
|
|
|
// Fecha
|
|
|
fecthFecha: function() {
|
|
|
var to;
|
|
@@ -1173,7 +1173,7 @@ openerp.eiru_reporting = function (instance, local) {
|
|
|
// Metodo inicial
|
|
|
fecthInitial: function(){
|
|
|
var self = this;
|
|
|
- self.modules = instance._modules;
|
|
|
+ // self.modules = instance._modules;
|
|
|
self.fecthJournalStore().then(function(accountJournal){
|
|
|
self.accountJournal=accountJournal;
|
|
|
return accountJournal;
|
|
@@ -1200,7 +1200,7 @@ openerp.eiru_reporting = function (instance, local) {
|
|
|
self.resCompany = resCompany;
|
|
|
return self.fecthDataVoucher(self.accountVoucher,self.accountJournal);
|
|
|
});
|
|
|
- return self.renderReport();
|
|
|
+ // return self.renderReport();
|
|
|
},
|
|
|
// company_curency
|
|
|
fecthComanyCurrency: function(){
|
|
@@ -1218,11 +1218,12 @@ openerp.eiru_reporting = function (instance, local) {
|
|
|
fecthJournalStore: function(){
|
|
|
var self = this;
|
|
|
var defer = $.Deferred();
|
|
|
- var modules = self.checkModel('multi_store');
|
|
|
- if (modules.length <= 0){
|
|
|
- self.showMensaje('multi_store');
|
|
|
- return defer;
|
|
|
- }
|
|
|
+ // var modules = self.checkModel('multi_store');
|
|
|
+ //
|
|
|
+ // if (modules.length <= 0){
|
|
|
+ // self.showMensaje('multi_store');
|
|
|
+ // return defer;
|
|
|
+ // }
|
|
|
|
|
|
var journal = new instance.web.Model('res.store');
|
|
|
var field=['id', 'name','out_invoice_id','journal_ids'];
|