Explorar el Código

[FIX] debit to credit

Gogs hace 7 años
padre
commit
3e2b62546b
Se han modificado 1 ficheros con 1 adiciones y 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