From 5c3055ce6ef0828a32e854125ae063e7e80717fb Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Sun, 9 Apr 2023 18:41:27 -0400 Subject: [PATCH 1/2] [UPD] script maintenance prettier xml: documentation strict whitespace --- script/maintenance/prettier_xml.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script/maintenance/prettier_xml.sh b/script/maintenance/prettier_xml.sh index b5779ec..2b0890f 100755 --- a/script/maintenance/prettier_xml.sh +++ b/script/maintenance/prettier_xml.sh @@ -7,6 +7,8 @@ if [[ "${STR_ARG}" = *"/data/"* ]]; then prettier --xml-whitespace-sensitivity "ignore" --prose-wrap always --tab-width 4 --no-bracket-spacing --print-width 999999999 --write $@ else prettier --xml-whitespace-sensitivity "ignore" --prose-wrap always --tab-width 4 --no-bracket-spacing --print-width 120 --write $@ + # strict xml-whitespace-sensitivity will keep space alignement + #prettier --xml-whitespace-sensitivity "strict" --prose-wrap always --tab-width 4 --no-bracket-spacing --print-width 120 --write $@ fi retVal=$? if [[ $retVal -ne 0 ]]; then From 1bcbc8efe3c18b02e3e69ea9d44807049681c82a Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Mon, 24 Jan 2022 14:00:54 -0500 Subject: [PATCH 2/2] [ADD] makefile: test export --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Makefile b/Makefile index 73af3c3..571fb2e 100644 --- a/Makefile +++ b/Makefile @@ -199,6 +199,21 @@ db_clone_test_to_test2: ./.venv/bin/python3 ./odoo/odoo-bin db --drop --database test2 ./.venv/bin/python3 ./odoo/odoo-bin db --clone --database test2 --from_database test +.PHONY: db_test_export +db_test_export: + ./script/database/db_restore.py --database test_website_export + ./script/addons/install_addons_dev.sh test_website_export demo_website_data + +.PHONY: db_test_re_export_website_attachments +db_test_re_export_website_attachments: + ./script/database/db_restore.py --database test_website_export + ./script/addons/install_addons_dev.sh test_website_export demo_website_attachments_data + # TODO this test fail at uninstall, it remove all files. + # TODO Strategy is to update ir_model_data, change module data and attach to another module like website + # TODO and update all link in website, (or use id of ir.attachment instead of xmlid website.) + ./script/addons/uninstall_addons.sh test_website_export demo_website_attachments_data + ./script/addons/install_addons_dev.sh test_website_export code_generator_demo_export_website_attachments + ######################## # Image installation # ######################## @@ -395,6 +410,7 @@ image_db_create_erplibre_package_dms: .PHONY: image_db_create_all image_db_create_all: + # TODO remove modules from addons/addons #./script/make.sh config_gen_image_db ./script/database/db_restore.py --clean_cache ./script/make.sh image_db_create_erplibre_base