def METHOD_NAME(self, products):
    """Create a picking from products."""
    customer = self.env["res.partner"].search([], limit=1)
    order = self._create_order(customer)
    self._create_order_line(order, products)
    order.action_confirm()
    picking = order.picking_ids
    picking.button_validate()
    return picking