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.

18 lines
449 B

  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. # Script to prepare the database with initial data
  4. import click
  5. import click_odoo
  6. @click.command()
  7. @click_odoo.env_options(default_log_level="info", database_must_exist=True)
  8. def main(env):
  9. """Set report.url in the database to be pointing at localhost."""
  10. env["ir.config_parameter"].set_param("report.url", "http://localhost:8069")
  11. env.cr.commit()
  12. if __name__ == "__main__":
  13. main()