One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
import os | |
import shutil | |
import requests | |
import zipfile | |
VERSION = '17.0' | |
zip_url = "https://nightly.odoo.com/" + VERSION + "/nightly/src/odoo_" + VERSION + ".latest.zip" | |
temporary_extract_path = 'tmp_odoo_update/' |
#!/bin/sh | |
rm odoo_16.0.latest.zip | |
wget https://nightly.odoo.com/16.0/nightly/src/odoo_16.0.latest.zip | |
sudo rm -rf /opt/odoo/odoo-server/src/odoo/* | |
sudo unzip -q /home/ubuntu/odoo_16.0.latest.zip -d /opt/odoo/odoo-server/src/odoo/ | |
sudo mv /opt/odoo/odoo-server/src/odoo/*/odoo/* /opt/odoo/odoo-server/src/odoo/ | |
sudo chown -R odoo:odoo /opt/odoo/odoo-server/src/odoo/* | |
sudo systemctl restart odoo-server.service |
[ | |
"Rage against the machin learning" | |
, | |
"Michael Json" | |
, | |
"Depeche Code" | |
, | |
"Kanye Test" | |
, | |
"Alt-JSX" |
import os | |
import sys | |
# Function to rename multiple files | |
def main(path, prefixe, ext): | |
i = 0 | |
for filename in os.listdir(str(path)): | |
my_dest = prefixe + str(i) + ext | |
print(my_dest) | |
my_source =path + filename |
import os | |
import io | |
def split(filehandler, delimiter=',', row_limit=333333, | |
output_name_template='output_%s.csv', output_path='.', keep_headers=True): | |
""" | |
Splits a CSV file into multiple pieces. | |
A quick bastardization of the Python CSV library. |