浏览代码

Retocar utilidad por línea vendedor

sebas 4 年之前
父节点
当前提交
2590135062
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      static/src/js/reports/report_sale_utility_vendor.js

+ 2 - 2
static/src/js/reports/report_sale_utility_vendor.js

@@ -204,7 +204,7 @@ function report_sale_utility_vendor(reporting){
         ====================================================================*/
         fetchAccountJournal: function(){
             var self = this;
-            var domain = [['active','=',true],['type','=','sale']];
+            var domain = [['active','=',true],['type','in',['sale','sale_refund']]];
             var AccountJournal = new model.web.Model('account.journal');
             return AccountJournal.call('getAccountJournal',[domain], {
                 context: new model.web.CompoundContext()
@@ -281,7 +281,7 @@ function report_sale_utility_vendor(reporting){
 
             var domain = [
                 ['state', 'in',['open','paid']],
-                ['type', '=', 'out_invoice'],
+                ['type', 'in', ['out_invoice','out_refund']],
                 ['journal_id','in',journal_ids],
             ];