'Suggest accessories based on \'Accessory Products\' of products in cart'

def _cart_accessories(self):

    for order in self:
        accessory_products = order.website_order_line.mapped('product_id.accessory_product_ids').filtered((lambda product: product.website_published))
        accessory_products -= order.website_order_line.mapped('product_id')
        return random.sample(accessory_products, len(accessory_products))
