2026-02-15 01:07:25 -05:00
|
|
|
|
2020-07-05 22:38:14 -04:00
|
|
|
# Execute ERPLibre
|
|
|
|
|
|
|
|
|
|
## Start database
|
2021-07-20 20:14:24 -04:00
|
|
|
|
2020-07-05 22:38:14 -04:00
|
|
|
```bash
|
|
|
|
|
sudo systemctl start postgresql.service
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Run ERPLibre
|
2021-07-20 20:14:24 -04:00
|
|
|
|
2020-07-05 22:38:14 -04:00
|
|
|
### Method 1
|
2021-07-20 20:14:24 -04:00
|
|
|
|
2020-07-05 22:38:14 -04:00
|
|
|
Simply
|
2021-07-20 20:14:24 -04:00
|
|
|
|
2020-07-05 22:38:14 -04:00
|
|
|
```bash
|
|
|
|
|
./run.sh
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
With arguments
|
2021-07-20 20:14:24 -04:00
|
|
|
|
2020-07-05 22:38:14 -04:00
|
|
|
```bash
|
|
|
|
|
./run.sh -h
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Method 2
|
2021-07-20 20:14:24 -04:00
|
|
|
|
2020-07-05 22:38:14 -04:00
|
|
|
Execute your own python script:
|
2021-07-20 20:14:24 -04:00
|
|
|
|
2020-07-05 22:38:14 -04:00
|
|
|
```bash
|
2020-07-12 15:20:39 -04:00
|
|
|
./run.sh --log-level debug
|
2020-07-05 22:38:14 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Update all
|
2021-07-20 20:14:24 -04:00
|
|
|
|
2020-09-30 20:49:35 -04:00
|
|
|
Great idea to run it when updating Odoo, it updates each module database.
|
2021-07-20 20:14:24 -04:00
|
|
|
|
2020-07-05 22:38:14 -04:00
|
|
|
```bash
|
2020-07-12 15:20:39 -04:00
|
|
|
./run.sh -d [DATABASE] -u all --log-level debug
|
2020-07-05 22:38:14 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Update module
|
2021-07-20 20:14:24 -04:00
|
|
|
|
2020-07-05 22:38:14 -04:00
|
|
|
```bash
|
2020-07-12 15:20:39 -04:00
|
|
|
./run.sh -d [DATABASE] -u [module] --log-level debug
|
2020-07-05 22:38:14 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Test
|
2021-07-20 20:14:24 -04:00
|
|
|
|
2020-07-12 15:20:39 -04:00
|
|
|
First execution, install you requirements, choose a new database.
|
2021-07-20 20:14:24 -04:00
|
|
|
|
2020-07-05 22:38:14 -04:00
|
|
|
```bash
|
2024-12-02 05:27:57 -05:00
|
|
|
./run.sh -d [DATABASE] -i [module to test] --test-enable --no-http --stop-after-init --log-level=test
|
2020-07-12 15:20:39 -04:00
|
|
|
```
|
2021-07-20 20:14:24 -04:00
|
|
|
|
2020-09-30 20:49:35 -04:00
|
|
|
Execute your test on a specific module.
|
2021-07-20 20:14:24 -04:00
|
|
|
|
2020-07-12 15:20:39 -04:00
|
|
|
```bash
|
2024-12-02 05:27:57 -05:00
|
|
|
./run.sh -d [DATABASE] -u [module to test] --test-enable --no-http --stop-after-init --log-level=test
|
2020-07-12 15:20:39 -04:00
|
|
|
```
|
2021-07-20 20:14:24 -04:00
|
|
|
|
2020-09-30 20:49:35 -04:00
|
|
|
Execute your test on a specific module with tags.
|
2021-07-20 20:14:24 -04:00
|
|
|
|
2020-07-12 15:20:39 -04:00
|
|
|
```bash
|
2024-12-02 05:27:57 -05:00
|
|
|
./run.sh -d [DATABASE] -u [module to test] --test-enable --no-http --stop-after-init --log-level=test --test-tags [module_name][tags]
|
2026-02-15 01:07:25 -05:00
|
|
|
```
|