From 67104cf3bb29355b6541ab010d21e57de0b1a057 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Mon, 12 Aug 2024 18:52:35 +0200 Subject: [PATCH] fixup! [IMP] datev_export_dtvf: Prefer exporting SO name if available --- datev_export_dtvf/models/datev_export_dtvf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datev_export_dtvf/models/datev_export_dtvf.py b/datev_export_dtvf/models/datev_export_dtvf.py index 329aa8e3..173e27ce 100644 --- a/datev_export_dtvf/models/datev_export_dtvf.py +++ b/datev_export_dtvf/models/datev_export_dtvf.py @@ -243,14 +243,14 @@ def _get_data_transaction(self, move): "Belegdatum": move.date.strftime("%d%m"), "Belegfeld 1": move.name if "sale_line_ids" not in move_line._fields + or "purchase_line_id" not in move_line._fields else ( move.mapped( "line_ids.full_reconcile_id.reconciled_line_ids.sale_line_ids.order_id" ) or move.mapped("line_ids.sale_line_ids.order_id") )[:1].name - if "purchase_line_id" not in move_line._fields - else ( + or ( move.mapped( "line_ids.full_reconcile_id.reconciled_line_ids.purchase_line_id" ".order_id"