-
Notifications
You must be signed in to change notification settings - Fork 9
/
script.sh
executable file
·57 lines (48 loc) · 1.66 KB
/
script.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
pg_container="postgres"
pg_user="odoo"
prod_db="TGI"
psql="docker exec -it $pg_container psql -U $pg_user $prod_db"
# Sales
$psql -c "delete from sale_order";
$psql -c "delete from sale_order_line";
# Purchase
$psql -c "delete from purchase_order";
$psql -c "delete from purchase_order_line";
# Point of sale
$psql -c "delete from pos_order";
$psql -c "delete from pos_session";
# MRP
$psql -c "delete from mrp_production";
$psql -c "delete from mrp_unbuild";
# Stock
$psql -c "delete from stock_inventory";
$psql -c "delete from stock_picking";
$psql -c "delete from stock_move";
$psql -c "delete from stock_scrap";
$psql -c "delete from stock_move_line";
# serial number
$psql -c "delete from stock_quant";
$psql -c "delete from stock_production_lot";
# Expense
$psql -c "delete from hr_expense_sheet";
$psql -c "delete from hr_expense";
# Accounting
$psql -c "delete from account_invoice_reimbursable";
$psql -c "delete from account_payment_intransit_deduction";
$psql -c "delete from account_payment_intransit_line";
$psql -c "delete from account_payment_intransit";
$psql -c "delete from account_partial_reconcile";
$psql -c "delete from account_move_line";
$psql -c "delete from account_invoice_line_tax";
$psql -c "delete from account_invoice_tax";
$psql -c "delete from account_invoice";
$psql -c "delete from account_move";
$psql -c "delete from tax_adjustments_wizard";
$psql -c "delete from withholding_tax_cert";
$psql -c "delete from account_payment";
$psql -c "delete from account_bank_statement";
$psql -c "delete from account_analytic_line";
$psql -c "delete from account_analytic_account";
$psql -c "delete from account_billing";
# Asset
$psql -c "delete from account_asset";