Merge branch 'main' into 7.0

This commit is contained in:
Frederik Jaeckel 2025-01-24 09:21:35 +01:00
commit 8c221fcbfd

View file

@ -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):