소스 검색

[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