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

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