From f322f2a5215a455666e77cb93d8ad7a5b40ff670 Mon Sep 17 00:00:00 2001 From: Frederik Jaeckel Date: Fri, 24 Jan 2025 09:21:17 +0100 Subject: [PATCH] limit content-check to supplier-invoices --- document.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/document.py b/document.py index bfd6e30..3445df8 100644 --- a/document.py +++ b/document.py @@ -65,7 +65,8 @@ class Incoming(metaclass=PoolMeta): Defaults to False. """ for document in documents: - document._facturx_detect_content() + if document.type == 'supplier_invoice': + document._facturx_detect_content() super().process(documents, with_children) def _process_supplier_invoice(self): @@ -90,7 +91,6 @@ class Incoming(metaclass=PoolMeta): invoice = self._readxml_update_invoice(invoice) invoice.save() self._readxml_check_invoice(invoice) - # raise ValueError('stop') return invoice def _readxml_check_invoice(self, invoice):