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 5, 2024
1 parent 8212666 commit 85db050
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions datev_export_dtvf/models/datev_export_dtvf.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,14 @@ def _get_data_transaction(self, move):
)
or move.mapped("line_ids.sale_line_ids.order_id")
)[:1].name
if "purchase_line_id" not in move_line._fields
else (
move.mapped(
"line_ids.full_reconcile_id.reconciled_line_ids.purchase_line_id"
".order_id"
)
or move.mapped("line_ids.purchase_line_id.order_id")
)[:1].name
or move.name,
"Belegfeld 2": move_line2.name,
"KOST1 - Kostenstelle": move_line.analytic_account_id.code
Expand Down

0 comments on commit 85db050

Please sign in to comment.