Skip to content

Instantly share code, notes, and snippets.

View yassinelachgar's full-sized avatar

Lachgar yassinelachgar

  • Mobilab
  • Morocco
View GitHub Profile
@cemerson
cemerson / archive.org-scanned-book-downloader-bookmarklet.md
Last active July 20, 2024 17:12
Archive.org Scanned Book Downloader Bookmarklet

Archive.org Scanned Book Downloader Bookmarklet

A simple "1-click" javascript approach to downloading a scanned book from archive.org to read at your leisure on the device of your choosing w/out having to manually screenshot every pages of the book by hand. In short it's a glorified "Save Image As..." approach but consolidated down to "1 click". BTW there may be a much better option than this out there - I just built this as an autistic project to see if it would work.

Demo Video

Archive.org SBDL Demo

Obligatory Legal/Disclaimer:

By using this script you agree to delete all book files/images after your 1 hour or 14 days is up! I don't support using this script for any other use cases. After all, none of us have ever kept a library book past it's return date, right?

@rockavoldy
rockavoldy / 0-odoo-cheatsheet.md
Last active April 29, 2024 10:04
Odoo Cheatsheet
@danmana
danmana / example_model.py
Created August 16, 2021 15:08
Add support for custom json fields in Odoo
from odoo import models, fields, api
from json_field import JsonField
class Person(models.Model):
_name = 'example.person'
_description = 'Person with json details'
details = JsonField() # a json object represented as dict / list / python primitives
@rafnixg
rafnixg / odoo-vscode-enviroment.md
Last active July 22, 2024 02:13
Configure Odoo for Development enviroment in VSCode
@rockavoldy
rockavoldy / InstallOdoo.md
Last active April 8, 2023 05:18
Install Odoo 13 on macOS 10.15.7 Catalina

Install Odoo 13 on macOS 10.15.7 Catalina

Requirements

  • Homebrew (for installing python)
  • Docker (for postgresql server, you can install postgre with homebrew too)
  • python3 (for installing virtualenv)
  • virtualenv (to run as python3.7, pillow 6.1.0 dependencies can be run with python3.5, 3.6, and 3.7)

Steps

  1. Install python3.7 with brew
@ryanc-me
ryanc-me / update_quant_reservation.md
Last active July 15, 2024 23:54
Improve logging (previously "Lot: 0000001" would show, even if no lot was set)

Update Quant Reservation

"It is not possible to unreserve more products of <product name> than you have in stock"


Sometimes, the reserved_quantity on the stock.quant record for a product becomes out-of-sync with the sum of the reserved quantity in stock.move.lines for that product.

For example, consider:

  • Product A (quant): on-hand = 50, reserved = 10
############################################################################################################
################## #############################
################## #############################
This Gist collection contains all localstack related examples
################## #############################
################## #############################
############################################################################################################

Backup db from odoo db manager inteface

the restore from command line:

pg_restore --format=c -U odoo -W -d <dbname> <backup_file.dump>

Backup manuyally

@101t
101t / Deployment Guide to Installing Odoo 14 on Ubuntu 20.04.md
Last active June 13, 2024 21:47
Deployment Guide to Installing Odoo 14 on Ubuntu 20.04