update task, tempalte and ref

This commit is contained in:
Janik von Rotz committed 2021-10-28 08:56:20 +02:00
1 parent 2eec1f7808
commit e602fb6693
8 files changed
+23 -8

No files matched your search

+1 -1
Submodule odoo updated: 2dbe39aed5...0ef9583b27.
+17 -3
View File
@@ -154,8 +154,8 @@ function init-db() {
locale
activate-venv
# odoo-bin --init base -d $DATABASE --db_host=localhost --db_password=odoo --db_user=odoo
odoo-bin --init base -d $DATABASE --config 'config/odoo-native.conf' --stop-after-init --no-http
odoo-bin --init base -d $DATABASE --db_host=localhost --db_password=odoo --db_user=odoo
# odoo-bin --init base -d $DATABASE --config 'config/odoo-native.conf' --stop-after-init --no-http
}
function odoo-cloc() {
@@ -197,7 +197,18 @@ function install-module() {
locale
activate-venv
odoo-bin -d $1 -i $MODULE_NAME --config 'config/odoo-native.conf' --stop-after-init --no-http
odoo-bin -d $1 -i $MODULE_NAME --config 'config/odoo-native.conf' --stop-after-init --no-http
}
function test-module() {
if test -z "$1"; then echo "\$1 is empty"; exit; fi
if test -z "$2"; then echo "\$2 is empty"; exit; fi
MODULE_NAME=$(basename $2)
locale
activate-venv
odoo-bin -d $1 -i $MODULE_NAME --config 'config/odoo-native.conf' --stop-after-init --log-level=test --test-enable
}
function remove-module() {
@@ -560,6 +571,9 @@ case "$1" in
update-module)
update-module $2 $3
;;
test-module)
test-module $2 $3
;;
create-module)
create-module $2
;;
+1
View File
@@ -30,6 +30,7 @@
| start-psql | [db] | Start PSQL shell in Docker container. |
| start-shell | [db] | Start Odoo shell from source folder. |
| stop | | Stop docker containers. |
| test-module | [db] [name,path] | Test target Odoo module. |
| update-config | | Update odoo config. |
| update-app-list | [db] | Update app list. |
| update-module | [db] [name,path] | Update target Odoo module. |
+1 -1
View File
@@ -16,7 +16,7 @@
'data': [
# 'security/ir.model.access.csv',
# 'views/report_invoice_document.xml',
# 'data/ir_sequence_data.xml',
# 'data/ir_sequence.xml',
# 'views/assets.xml',
'views/views.xml',
],