hunk.code_window:         order = 'date_begin'
           if searches.get('date', 'all') == 'old':
               order = 'date_begin desc'
           if searches["country"] != 'all':   # if we are looking for a specific country
               order = 'is_online, ' + order  # show physical events first
           order = 'website_published desc, ' + order
           events = Event.search(dom_without("none"), limit=step, offset=pager['offset'], order=order)
           values = {
               'current_date': current_date,
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep
hunk.after_edit:         order = 'is_published desc, ' + order
  
hunk.file_path: addons/website_event/controllers/main.py
hunk.type: replace
file: # -*- coding: utf-8 -*-
  # Part of Odoo. See LICENSE file for full copyright and licensing details.
  
  from odoo import api, fields, models, _
  
  
  class AssetDepreciationConfirmationWizard(models.TransientModel):
      _name = "asset.depreciation.confirmation.wizard"
      _description = "asset.depreciation.confirmation.wizard"
  
      date = fields.Date('Account Date', required=True, help="Choose the period for which you want to automatically post the depreciation lines of running assets", default=fields.Date.context_today)
  
      @api.multi
      def asset_compute(self):
          self.ensure_one()
          context = self._context
          created_move_ids = self.env['account.asset.asset'].compute_generated_entries(self.date, asset_type=context.get('asset_type'))
  
          return {
              'name': _('Created Asset Moves') if context.get('asset_type') == 'purchase' else _('Created Revenue Moves'),
              'view_type': 'form',
              'view_mode': 'tree,form',
              'res_model': 'account.move',
              'view_id': False,
              'domain': "[('id','in',[" + ','.join(str(id) for id in created_move_ids) + "])]",
              'type': 'ir.actions.act_window',
          }
  