Skip to content
Extraits de code Groupes Projets
Valider ddcef705 rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[update] export contribution

parent a1efcd5a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -62,10 +62,8 @@ class ExportJournalCg(http.Controller): ...@@ -62,10 +62,8 @@ class ExportJournalCg(http.Controller):
# Selection des dates + pas d'export du journal UR / FEDE # Selection des dates + pas d'export du journal UR / FEDE
domain = [ domain = [
("partner_id", "!=", False),
("company_id", "=", company_id.id), ("company_id", "=", company_id.id),
("parent_state", "=", "posted"), ("parent_state", "=", "posted"),
("date_maturity", "!=", False),
] ]
if date_start and date_end: if date_start and date_end:
domain += [ domain += [
...@@ -74,8 +72,8 @@ class ExportJournalCg(http.Controller): ...@@ -74,8 +72,8 @@ class ExportJournalCg(http.Controller):
] ]
if date_creation_start and date_creation_end: if date_creation_start and date_creation_end:
domain += [ domain += [
("create_date", ">=", date_creation_start), ("create_date", ">=", date_creation_start + " 00:00:00"),
("create_date", "<=", date_creation_end), ("create_date", "<=", date_creation_end + " 23:59:59"),
] ]
if export_type == "empty": if export_type == "empty":
domain += [("date_export", "=", False)] domain += [("date_export", "=", False)]
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter