hunk.code_window:         # default sortby order
           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)]
           # count for pager
  
hunk.labels: keep keep keep keep keep replace keep 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 -*-
  # Part of Odoo. See LICENSE file for full copyright and licensing details.
  
  # flake8: noqa: F401
  
  from . import res_config_settings
  from . import decimal_precision
  
  # don't try to be a good boy and sort imports alphabetically.
  # `product.template` should be initialised before `product.product`
  from . import product_template
  from . import product
  
  from . import product_attribute
  from . import product_pricelist
  from . import res_company
  from . import res_partner
  