Skip to content
Snippets Groups Projects
Commit be3fbd20 authored by dut-odoo's avatar dut-odoo Committed by Pierre Masereel
Browse files

[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.
parent 78e9c7f5
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment