This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream odoo8 { | |
server 0.0.0.0:8069 weight=1 fail_timeout=0; | |
} | |
upstream odoo8-im { | |
server 0.0.0.0:8072 weight=1 fail_timeout=0; | |
} | |
## http redirects to https ## | |
server { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Recompute amount_total for account.invoice | |
env.add_todo(model._fields['amount_total'], object) | |
model.recompute() | |
# where | |
# object - recordset of instances to recompute field for | |
# model - recordset instances model |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is just a cheat sheet: | |
# On production | |
sudo -u postgres pg_dump database | gzip -9 > database.sql.gz | |
# On local | |
scp -C production:~/database.sql.gz | |
dropdb database && createdb database | |
gunzip < database.sql.gz | psql database |