浏览代码

[FIX] debit to credit

Gogs 7 年之前
父节点
当前提交
3e2b62546b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      controllers/main.py

+ 1 - 1
controllers/main.py

@@ -119,7 +119,7 @@ class Sales(http.Controller):
                 }
 
             }
-        } for journal in request.env['account.journal'].search([('type', 'in', ['bank', 'cash']), ('default_debit_account_id.currency_id', '=', False), ('active', '=', True)], order='id')]
+        } for journal in request.env['account.journal'].search([('type', 'in', ['bank', 'cash']), ('default_credit_account_id.currency_id', '=', False), ('active', '=', True)], order='id')]
     
     '''
         Get all active customers