Explorar o código

[FIX] debit to credit

Gogs %!s(int64=7) %!d(string=hai) anos
pai
achega
3e2b62546b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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