From be3fbd20e2b8d0755ee6c20e681cac48261cb10a Mon Sep 17 00:00:00 2001 From: dut-odoo Date: Mon, 20 Jun 2016 16:29:38 +0530 Subject: [PATCH] [FIX] website_portal_sale: fixed archive domain * Archive isn't working properly because doesn't show elements of last day of the month in the wrong month Change the domain to take the good days. --- addons/website_portal_sale/controllers/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/website_portal_sale/controllers/main.py b/addons/website_portal_sale/controllers/main.py index 11da77648ea..97b7f6abfec 100644 --- a/addons/website_portal_sale/controllers/main.py +++ b/addons/website_portal_sale/controllers/main.py @@ -55,7 +55,7 @@ class website_account(website_account): archive_groups = self._get_archive_groups('sale.order', domain) if date_begin and date_end: - domain += [('create_date', '>=', date_begin), ('create_date', '<', date_end)] + domain += [('create_date', '>', date_begin), ('create_date', '<=', date_end)] # count for pager quotation_count = SaleOrder.search_count(domain) @@ -91,7 +91,7 @@ class website_account(website_account): ] archive_groups = self._get_archive_groups('sale.order', domain) if date_begin and date_end: - domain += [('create_date', '>=', date_begin), ('create_date', '<', date_end)] + domain += [('create_date', '>', date_begin), ('create_date', '<=', date_end)] # count for pager order_count = SaleOrder.search_count(domain) @@ -146,7 +146,7 @@ class website_account(website_account): ] archive_groups = self._get_archive_groups('account.invoice', domain) if date_begin and date_end: - domain += [('create_date', '>=', date_begin), ('create_date', '<', date_end)] + domain += [('create_date', '>', date_begin), ('create_date', '<=', date_end)] # count for pager invoice_count = AccountInvoice.search_count(domain)