Skip to content

Instantly share code, notes, and snippets.

# Put that into your zshrc or bashrc, enjoy
extract_tickets_from_string_and_open_them_in_chrome() {
# This function, allows you to quickly open multiple Odoo task URLs in Chrome.
# When you run the script, it prompts you to paste any text containing Odoo task URLs and then press Ctrl-D to finish.
echo "Please paste your text with Odoo task URLs, then press Ctrl-D when finished:"
input=$(cat)
ids=$(echo "$input" | grep -oP "project\.task\/([0-9]+)\b" | grep -oP '[0-9]+')