version: '3' | |
services: | |
db: | |
image: postgres:13 | |
volumes: | |
- db-data:/var/lib/postgresql/data/pgdata | |
ports: | |
- 5432:5432/tcp | |
environment: | |
- POSTGRES_PASSWORD=odoo |
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: |
-- 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 |
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> |
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
################## ############################# ################## ############################# ############################################################################################################
"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