Skip to content

Commit

Permalink
add test mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkhao committed Apr 30, 2024
1 parent 8df333e commit ef7ac8c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion export_invoice_edi_auchan/schema/invoice_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ def get_values(self):
(3, ""), # Nb de jour de l'escompte opt
(6, ""), # Pourcentage de pénalité opt
(3, ""), # Nb de jour de pénalité opt
(1, "0"), # Document de test (1/0)
(
1,
self.invoice.context.get("test_mode") and "0" or "1",
), # Document de test (1/0)
(
3,
"42",
Expand Down

0 comments on commit ef7ac8c

Please sign in to comment.