summaryrefslogtreecommitdiff
path: root/vit_efaktur/wizard/auto.py
diff options
context:
space:
mode:
Diffstat (limited to 'vit_efaktur/wizard/auto.py')
-rw-r--r--vit_efaktur/wizard/auto.py4
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 = []