odoo 备份还原,停止模块更新
备份 :pg_dump -h localhost -U odoo -W -d gino > gino.sql
创建:createdb -h localhost -U odoo gino还原:psql -h localhost -U odoo -d gino < gino.sql
删除:dropdb -h localhost -U odoo gino
停止更新
SELECT * from ir_module_module WHERE "state" like '%up%';
SELECT state from ir_module_module GROUP BY "state" ;
UPDATE ir_module_module set state='installed' WHERE "state" like '%up%';
windows 下更新模块命令;
C:\Users\yulb\AppData\Local\Programs\Python\Python36>python.exe D:\pg\odoo-bin -c D:\pg\debian\odoo.conf -d pg -u pg_partner
linux 下更新模块命令:
python openerp-server -c /etc/odoo-server.conf -u all –stop-after-init -d DB_