diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-08-01 11:22:52 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-08-01 11:22:52 +0700 |
| commit | 2a98db75b9af80f12276af2078914bc119213170 (patch) | |
| tree | be5138b6edd707ea6978fc82b158bb7b4f52943d | |
| parent | 96dfb67453c2a9d081ae9ee8d2b2f1b5a5e87a26 (diff) | |
fix error find invoice in auto numbering
| -rw-r--r-- | vit_efaktur/wizard/auto.py | 4 |
1 files 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 = [] |
