hunk.code_window:             position: "bottom",
           }, {
               trigger: ".modal-dialog:has(#mobile-viewport) button[data-dismiss=modal]",
               content: _t("Scroll to check rendering and then close the mobile preview."),
               position: "right",
           }, {
               trigger: "#content-menu-button",
               extra_trigger: "body:not(.modal-open)",
               content: _t("The <b>Content</b> menu allows you to rename and delete pages or add them to the top menu."),
               position: "bottom",
           }, {
               trigger: "#oe_main_menu_navbar a[data-action=new_page]",
  
hunk.labels: keep keep keep keep keep replace replace replace replace replace keep keep
hunk.file_path: addons/website/static/src/js/website.tour.banner.js
hunk.type: replace
file: # -*- coding: utf-8 -*-
  # Part of Odoo. See LICENSE file for full copyright and licensing details.
  
  from odoo import api, models, _
  from odoo.exceptions import UserError
  
  
  class PosInvoiceReport(models.AbstractModel):
      _name = 'report.point_of_sale.report_invoice'
  
      @api.multi
      def render_html(self, data=None):
          Report = self.env['report']
          PosOrder = self.env['pos.order']
          ids_to_print = []
          invoiced_posorders_ids = []
          selected_orders = PosOrder.browse(self.ids)
          for order in selected_orders.filtered(lambda o: o.invoice_id):
              ids_to_print.append(order.invoice_id.id)
              invoiced_posorders_ids.append(order.id)
          not_invoiced_orders_ids = list(set(self.ids) - set(invoiced_posorders_ids))
          if not_invoiced_orders_ids:
              not_invoiced_posorders = PosOrder.browse(not_invoiced_orders_ids)
              not_invoiced_orders_names = list(map(lambda a: a.name, not_invoiced_posorders))
              raise UserError(_('No link to an invoice for %s.') % ', '.join(not_invoiced_orders_names))
  
          return Report.sudo().render('account.report_invoice', {'docs': self.env['account.invoice'].browse(ids_to_print)})
  