Skip to content

Instantly share code, notes, and snippets.

View yassinelachgar's full-sized avatar

Lachgar yassinelachgar

View GitHub Profile
@byk0t
byk0t / docker-compose.yml
Last active January 26, 2024 16:08
Docker compose for odoo:14 and PostgreSQL:13
version: '3'
services:
db:
image: postgres:13
volumes:
- db-data:/var/lib/postgresql/data/pgdata
ports:
- 5432:5432/tcp
environment:
- POSTGRES_PASSWORD=odoo
@ssskip
ssskip / .gitlab-ci.yml
Last active September 11, 2024 16:17
gitlab-ci AWS ECS build & deploy
image: docker:latest
variables:
REPOSITORY_URL: xxx.dkr.ecr.us-west-2.amazonaws.com/xxx
REGION: us-west-2
TASK_DEFINTION_NAME: xxx
CLUSTER_NAME: xxx
SERVICE_NAME: xxx
services:
@phil-hildebrand
phil-hildebrand / admin.sql
Created December 12, 2018 21:50 — forked from namrata4/admin.sql
Handy PostgreSQL Monitoring Scripts
-- turn off paging (less/more)
psql> \pset pager off
/*
Pager usage is off.
*/
-- find an object name by id
SELECT OID, relname
Widget:
Widget is different or alternate representation to display a screen, fields and attributes in odoo.
Widget allows to change view using different rendering templates and also allows to design as you want.
Example:
widget_name.js
@101t
101t / Deployment Guide to Installing Odoo 14 on Ubuntu 20.04.md
Last active August 26, 2024 01:54
Deployment Guide to Installing Odoo 14 on Ubuntu 20.04
@kutzhanov
kutzhanov / .gitlab-ci.yml
Last active September 11, 2024 15:19
Deploy Docker container into AWS ECS Fargate using Gitlab CI
image: docker:19.03
variables:
REPOSITORY_URL: <AWS_ACCOUNT_ID>.dkr.ecr.<REGION_NAME>.amazonaws.com/<ECR_REPOSITORY_NAME>
REGION: <REGION_NAME>
TASK_DEFINITION_NAME: <TASK_DEFINITION_NAME>
CLUSTER_NAME: <CLUSTER_NAME>
SERVICE_NAME: <SERVICE_NAME>
CPU: <CPU>
MEMORY: <MEMORY>
@bzinoun
bzinoun / .gitlab-ci.yml
Last active July 26, 2024 16:07 — forked from jlis/.gitlab-ci.yml
AWS ECS and ECR deployment via Docker and Gitlab CI
image: docker:latest
variables:
REPOSITORY_URL: <AWS ACCOUNT ID>.dkr.ecr.eu-central-1.amazonaws.com/<ECS REPOSITORY NAME>
REGION: eu-central-1
TASK_DEFINTION_NAME: <TASK DEFINITION NAME>
CLUSTER_NAME: <CLUSTER NAME>
SERVICE_NAME: <SERVICE NAME>
services:

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

############################################################################################################ ################## ############################# ################## #############################

              This Gist collection contains all localstack related examples

################## ############################# ################## ############################# ############################################################################################################

@ryanc-me
ryanc-me / update_quant_reservation.md
Last active June 26, 2025 04:11
Odoo - Update Quant Reservation

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
  • Picking A (move): reserved = 10
  • Picking B (move): reserved = 5