Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
4 Відповіді
9864 Переглядів

How do I remove sample data easily?

Аватар
Відмінити
Найкраща відповідь

Hello Elloyd,

There is no easy way to delete sample data from the database. The best way to do this is to create a database without checking the box "create demo data". If you already put in other data you want to use I would recommend exporting this data and importing it in the new database.

Kind Regards,

Pol

Аватар
Відмінити
Найкраща відповідь

Try Odoo 15 Remove Data extension on the store. I can't post the link but it's available for odoo 15

Аватар
Відмінити
Найкраща відповідь

You can use the following:


Enter your VPS (if remote) or open terminal if in local:

ssh -l root 99.99.99.99


Use the postgres user:

➜  ~ su postgres

Select database

➜ psql abc_db_name
 
 
And fire this operations in terminal:

delete from stock_pack_operation;
delete from stock_picking;
delete from stock_move;
delete from account_invoice;
delete from account_partial_reconcile;
delete from account_move;
delete from sale_order;

delete from account_payment; 
Аватар
Відмінити
Найкраща відповідь

If you don't want to wait for an answer, you can also try to search for one:


Аватар
Відмінити