|
@@ -37,7 +37,6 @@ function monthly_purchases(widget) {
|
|
|
return accountVoucher;
|
|
|
}).then(function (accountVoucher) {
|
|
|
self.accountVoucher = accountVoucher;
|
|
|
- // console.log(accountVoucher);
|
|
|
return self.fetchAccountInvoice(accountVoucher);
|
|
|
}).then(function(accountInvoice){
|
|
|
self.accountInvoice = accountInvoice;
|
|
@@ -70,7 +69,6 @@ function monthly_purchases(widget) {
|
|
|
var self = this;
|
|
|
var defer = $.Deferred();
|
|
|
var number = _.map(voucher,function(map){return map.reference});
|
|
|
- // console.log(number);
|
|
|
var fields = ['id','number','date','origin'];
|
|
|
var domain = [['type', '=', 'in_invoice'],['origin', '!=', false ],['number', '=', number]];
|
|
|
var accountInvoice= new model.web.Model('account.invoice');
|