From 2a98db75b9af80f12276af2078914bc119213170 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Mon, 1 Aug 2022 11:22:52 +0700 Subject: fix error find invoice in auto numbering --- vit_efaktur/wizard/auto.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vit_efaktur/wizard/auto.py b/vit_efaktur/wizard/auto.py index 7c7720b..1681f7a 100644 --- a/vit_efaktur/wizard/auto.py +++ b/vit_efaktur/wizard/auto.py @@ -36,9 +36,9 @@ class efaktur_wizard(models.TransientModel): inv_obj = self.env['account.move'] invoices = inv_obj.search([('invoice_date','>=', start), ('invoice_date','<=', end), - ('state','=','open'), + ('state','=','posted'), ('efaktur_id','=',False), - ('type','=','out_invoice') + ('move_type','=','out_invoice') ]) i = 0 invoice_ids = [] -- cgit v1.2.3