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
#!/bin/bash | |
set -e | |
VERSION="0.3" | |
MAX_CMD_TRIES=30 | |
MAX_SFTP_TRIES=100 | |
# check sftp has the "put -a" command: | |
if man sftp | grep ' put.*local-path.*remote-path' | grep -q afPpr ; |
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
# python3 odoo-bin shell -c odoo.conf -d <database> | |
model = env['some.model'] | |
env.add_todo(model._fields['field_name'], model.search([])) | |
model.recompute() | |
env.cr.commit() |