Parcourir la source

Retocar pagare

Sebas il y a 5 ans
Parent
commit
21cf63b80d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      models.py

+ 1 - 1
models.py

@@ -93,7 +93,7 @@ class AccountInvoice(models.Model):
 	@api.model
 	def getAccountInvoicePagareQuota(self,domain):
 		AccountInvoice = self.env['account.invoice'].search(domain)
-		AccountMoveLine = self.env['account.move.line'].search([('move_id','=',AccountInvoice.number),('debit','>',0)],order='date_maturity')
+		AccountMoveLine = self.env['account.move.line'].search([('move_id','=',AccountInvoice.number),('debit','>',0),('date_maturity','!=', False)],order='date_maturity')
 
 		i = 1
 		x = len(AccountMoveLine)