Skip to content

Commit

Permalink
fixup! [IMP] datev_export_dtvf: Prefer exporting SO name if available
Browse files Browse the repository at this point in the history
  • Loading branch information
hbrunn committed Aug 12, 2024
1 parent 85db050 commit 67104cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datev_export_dtvf/models/datev_export_dtvf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 67104cf

Please sign in to comment.