|
@@ -93,7 +93,7 @@ class AccountInvoice(models.Model):
|
|
@api.model
|
|
@api.model
|
|
def getAccountInvoicePagareQuota(self,domain):
|
|
def getAccountInvoicePagareQuota(self,domain):
|
|
AccountInvoice = self.env['account.invoice'].search(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
|
|
i = 1
|
|
x = len(AccountMoveLine)
|
|
x = len(AccountMoveLine)
|