hunk.code_window:         if not sortby:
               sortby = 'date'
           sort_order = searchbar_sortings[sortby]['order']
           archive_groups = self._get_archive_groups('sale.order', domain)
           if date_begin and date_end:
               domain += [('create_date', '>', date_begin), ('create_date', '<=', date_end)]
  
hunk.labels: keep keep keep keep replace keep keep keep
hunk.after_edit:         archive_groups = self._get_archive_groups('sale.order', domain) if values.get('my_details') else []
  
hunk.file_path: addons/sale/controllers/portal.py
hunk.type: replace
file: # coding: utf-8
  # Copyright 2016 Vauxoo (https://www.vauxoo.com) <info@vauxoo.com>
  # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
  
  from . import account
  from . import res_bank
  from . import res_config_settings
  from . import chart_template
  