sudo apt install postgresql postgresql-client
sudo -u postgres createuser -s $USER
createdb odoo-dev-13.0
createdb odoo-dev-14.0
Debian 10
<label for="birth_city">Ville de naissance</label> | |
<select name="birth_city" id="birth_city"> | |
<option value="Abengourou">Abengourou</option> | |
<option value="Abidjan">Abidjan</option> | |
<option value="Aboisso">Aboisso</option> | |
<option value="Abongoua">Abongoua</option> | |
<option value="Adaou">Adaou</option> | |
<option value="Adiaké">Adiaké</option> | |
<option value="Adjouan">Adjouan</option> | |
<option value="Adzopé">Adzopé</option> |
# -*- coding: utf-8 -*- | |
from odoo import _ | |
from odoo import http | |
from odoo.http import Controller, request, route | |
class OnlineRequests(Controller): | |
@http.route('/web/download/binary/<string:model>/<int:res_id>/<string:field>/<string:filename>', type='http', auth="public") |
``` | |
____ _ _ | |
/ ___|___ _ __ ___ _ __ _ __ ___| |__ ___ _ __ ___(_)_ _____ | |
| | / _ \| '_ ` _ \| '_ \| '__/ _ \ '_ \ / _ \ '_ \/ __| \ \ / / _ \ | |
| |__| (_) | | | | | | |_) | | | __/ | | | __/ | | \__ \ |\ V / __/ | |
\____\___/|_| |_| |_| .__/|_| \___|_| |_|\___|_| |_|___/_| \_/ \___| | |
|_| | |
_ _ ____ _ _ _ _ | |
| | (_)_ __ _ ___ __ / ___| |__ ___ __ _| |_ ___| |__ ___ ___| |_ | |
| | | | '_ \| | | \ \/ / | | | '_ \ / _ \/ _` | __/ __| '_ \ / _ \/ _ \ __| |
git clone -b 0.7.0 --single-branch https://github.com/spchuang/videojs-markers.git
Reference here
from datetime import datetime, time | |
def dateDiffInSeconds(date1, date2): | |
timedelta = date2 - date1 | |
return timedelta.days * 24 * 3600 + timedelta.seconds | |
def daysHoursMinutesSecondsFromSeconds(seconds): | |
minutes, seconds = divmod(seconds, 60) | |
hours, minutes = divmod(minutes, 60) | |
days, hours = divmod(hours, 24) |