Ver Fonte

[fix] consulta al account.journal

Rodney Elpidio Enciso Arias há 7 anos atrás
pai
commit
b7d9e0b801

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

@@ -90,7 +90,7 @@ function widget_bank(widget) {
         fetchAccountJournal: function() {
             var self = this;
             var defer = $.Deferred();
-            var fields = ['id', 'name', 'date_order', 'amount_total'];
+            var fields = ['id', 'name'];
             var domain = [['type', '=', 'bank']];
             var PosOrder = new model.web.Model('account.journal');
             PosOrder.query(fields).filter(domain).all().then(function(results) {

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

@@ -90,7 +90,7 @@ function widget_cash(widget) {
         fetchAccountJournal: function() {
             var self = this;
             var defer = $.Deferred();
-            var fields = ['id', 'name', 'date_order', 'amount_total'];
+            var fields = ['id', 'name'];
             var domain = [['type', '=', 'cash']];
             var PosOrder = new model.web.Model('account.journal');
             PosOrder.query(fields).filter(domain).all().then(function(results) {