You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
376 B

  1. #!/bin/bash
  2. # Shortcut to run Odoo in unit testing mode
  3. set -e
  4. addons=$1
  5. shift
  6. log INFO Executing Odoo in i18n export mode for addons $addons
  7. # HACK Odoo needs a *.po file to guess the output format
  8. ln -sf /dev/stdout /tmp/stdout.po
  9. set -x
  10. exec odoo --stop-after-init -d "$PGDATABASE" --i18n-export /tmp/stdout.po \
  11. --modules "$addons" --update "$addons" --workers 0 "$@"