备份 :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:UsersyulbAppDataLocalProgramsPythonPython36>python.exe D:pgodoo-bin -c D:pgdebianodoo.conf -d pg -u pg_partner
linux 下更新模块命令:
python openerp-server -c /etc/odoo-server.conf -u all –stop-after-init -d DB_