def METHOD_NAME(self, docids, data):
    self.env.print_product_uom = self._context.get('print_product_uom', False)
    self.env.product_type = self._context.get(
        'product_type', 'product.product')
    self.env.prod_display_type = self._context.get('prod_display_type', False)
    pricelist_ids = self._context.get('pricelist_ids', [])
    categories_order = self._context.get('categories_order', '')
    pricelists = self.env['product.pricelist'].browse(pricelist_ids)
    # Get categories ordered
    category_type = self._context.get('category_type', False)
    if category_type == 'public_category':
        categories = self.env['product.public.category']
    else:
        categories = self.env['product.category']
    category_ids = self._context.get('category_ids', [])
    categories = categories.search([('id', 'in', category_ids)],
                                   order=categories_order)
    products = self.get_products(category_ids)
    self = self.with_context(
        products=products,
        categories=categories,
        pricelists=pricelists,
        company_logo=self.env.company.logo,
        print_product_uom=self.env.print_product_uom,
        product_type=self.env.product_type,
        prod_display_type=self.env.prod_display_type,
        today=fields.Date.today(),
        get_price=self.get_price,
        get_description=self.get_description,
        get_products=self.get_products,
        context=self._context,
        field_value_get=self.field_value_get,
    )
    return super().METHOD_NAME(docids, data)