Skip to content

Instantly share code, notes, and snippets.

View PierreAlainKouakou's full-sized avatar

Pierre Alain Kouakou PierreAlainKouakou

  • Veone
  • Abidjan/Côte d'Ivoire
View GitHub Profile
@PierreAlainKouakou
PierreAlainKouakou / liste_ville_cote_d_ivoire.html
Created July 9, 2020 13:03
HTML Dropdown list of all Ivory Coast city !
<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>
@PierreAlainKouakou
PierreAlainKouakou / form.py
Last active March 2, 2022 11:23
How to download any binary file on click from Odoo website?
# -*- 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")
@PierreAlainKouakou
PierreAlainKouakou / odoo-vscode-enviroment.md
Created September 12, 2022 16:37 — forked from rafnixg/odoo-vscode-enviroment.md
Configure Odoo for Development enviroment in VSCode

Install postgresql

sudo apt install postgresql postgresql-client
sudo -u postgres createuser -s $USER
createdb odoo-dev-13.0
createdb odoo-dev-14.0

Install Dependencies

Debian 10

Odoo - Rename an addon without losing data

Rename addon

  • Change __openerp__.py addon name field
  • Change README.rst file
@PierreAlainKouakou
PierreAlainKouakou / README.md
Created April 5, 2023 10:14 — forked from 101t/README.md
Odoo OpenUpgrade Database Migration

Odoo OpenUpgrade Database Migration

Aftar install and configure OpenUpgrade on your local linux:

python3 ./migrate3.py --config=odoo12-server.conf --database=mydb12 --run-migrations=12.0,13.0 --branch-dir=/var/tmp/openupgrade
@PierreAlainKouakou
PierreAlainKouakou / linux-cheatsheet.rtf
Created April 5, 2023 10:29 — forked from 101t/linux-cheatsheet.rtf
Comprehensive Linux Cheatsheet
```
____ _ _
/ ___|___ _ __ ___ _ __ _ __ ___| |__ ___ _ __ ___(_)_ _____
| | / _ \| '_ ` _ \| '_ \| '__/ _ \ '_ \ / _ \ '_ \/ __| \ \ / / _ \
| |__| (_) | | | | | | |_) | | | __/ | | | __/ | | \__ \ |\ V / __/
\____\___/|_| |_| |_| .__/|_| \___|_| |_|\___|_| |_|___/_| \_/ \___|
|_|
_ _ ____ _ _ _ _
| | (_)_ __ _ ___ __ / ___| |__ ___ __ _| |_ ___| |__ ___ ___| |_
| | | | '_ \| | | \ \/ / | | | '_ \ / _ \/ _` | __/ __| '_ \ / _ \/ _ \ __|
@PierreAlainKouakou
PierreAlainKouakou / Git-Commands.md
Created April 5, 2023 10:30 — forked from 101t/Git-Commands.md
Git Commands Hot and simple tutorials

Simple Commands for "git"

Download Specific version of Single Branch:

git clone -b 0.7.0 --single-branch https://github.com/spchuang/videojs-markers.git

Reference here

Adding github push alias (shortcut) in .bashrc file

@PierreAlainKouakou
PierreAlainKouakou / countdown.py
Created September 18, 2023 18:42 — forked from morion4000/countdown.py
Python countdown to date script
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)