diff --git a/controllers/main.py b/controllers/main.py index bda8ff167724ea71930e791c5e0d987650eb3e92..a6a1515365abdbfff70d21a0b917fc517106c6cf 100644 --- a/controllers/main.py +++ b/controllers/main.py @@ -62,10 +62,8 @@ class ExportJournalCg(http.Controller): # Selection des dates + pas d'export du journal UR / FEDE domain = [ - ("partner_id", "!=", False), ("company_id", "=", company_id.id), ("parent_state", "=", "posted"), - ("date_maturity", "!=", False), ] if date_start and date_end: domain += [ @@ -74,8 +72,8 @@ class ExportJournalCg(http.Controller): ] if date_creation_start and date_creation_end: domain += [ - ("create_date", ">=", date_creation_start), - ("create_date", "<=", date_creation_end), + ("create_date", ">=", date_creation_start + " 00:00:00"), + ("create_date", "<=", date_creation_end + " 23:59:59"), ] if export_type == "empty": domain += [("date_export", "=", False)]