Odoo cleans empty PostgreSQL data cloud service operation

The data cleaning module should be careful when cleaning official standard module data, but when cleaning modules written by oneself, much of the data cannot be cleaned smoothly. Directly enter the Odoo cloud server and go into PostgreSQL to clean it.

     The data cleaning module should be careful when cleaning official standard module data, but when cleaning modules written by oneself, many data cannot be cleaned smoothly. Directly enter the Odoo cloud server and go to PostgreSQL for cleaning.

    Before manually cleaning odoo data, first confirm that the data can be cleaned. It is recommended to first use the data cleaning module on apps to clean the remaining residual data, and then proceed with manual cleaning.

The data cleaning preparation work is as follows:

1. Log in to the odoo server via a link or open the terminal in the current season to execute commands;

2. Connect to pg database: #sudo su - postgres Switch to the postgres user;

3、再postgres用户下执行:#psql -d  <数据库名称>   即可链接到制定数据库上;

4. After connecting to the PostgreSQL database, execute the SQL statement command: Delete from <database table name>

关于我们

​我们致力于帮助中小企业实现数字化转型,我们的团队由一群充满激情和创新思维的专业人士组成,他们具备丰富的行业经验和技术专长。

扫一扫获取顾问以及手册

归档
Sign in to leave a comment
Summary of common Odoo methods: How to use mapped() and search() in Odoo 14
Common methods in odoo