Merge branch 'develop'
- better help script db_restore - add default repo OCA_server-ux - increase memory when install_addons_dev.sh - add makefile format to MathBenTech_odoo-business-spending-management-quebec-canada - format all python script
This commit is contained in:
commit
ba0862433b
7 changed files with 26 additions and 9 deletions
3
Makefile
3
Makefile
|
|
@ -835,6 +835,9 @@ format_supported_addons:
|
|||
.venv/bin/isort --profile black -l 79 ./addons/MathBenTech_erplibre-family-management/
|
||||
./script/maintenance/black.sh ./addons/MathBenTech_erplibre-family-management/
|
||||
#./script/maintenance/prettier_xml.sh ./addons/MathBenTech_erplibre-family-management/
|
||||
.venv/bin/isort --profile black -l 79 ./addons/MathBenTech_odoo-business-spending-management-quebec-canada/
|
||||
./script/maintenance/black.sh ./addons/MathBenTech_odoo-business-spending-management-quebec-canada/
|
||||
#./script/maintenance/prettier_xml.sh ./addons/MathBenTech_erplibre-family-management/
|
||||
|
||||
.PHONY: format_code_generator_template
|
||||
format_code_generator_template:
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@
|
|||
<project name="server-brand.git" path="addons/OCA_server-brand" remote="OCA" groups="addons,base"/>
|
||||
<project name="server-env.git" path="addons/OCA_server-env" remote="OCA" groups="addons"/>
|
||||
<project name="server-tools.git" path="addons/OCA_server-tools" remote="OCA" revision="12.0_dev" groups="addons,base"/>
|
||||
<project name="server-ux.git" path="addons/OCA_server-ux" remote="OCA" groups="addons"/>
|
||||
<project name="server-ux.git" path="addons/OCA_server-ux" remote="OCA" groups="addons,base"/>
|
||||
<project name="social.git" path="addons/OCA_social" remote="OCA" groups="addons,base"/>
|
||||
<project name="stock-logistics-warehouse.git" path="addons/OCA_stock-logistics-warehouse" remote="OCA" groups="addons"/>
|
||||
<project name="storage.git" path="addons/OCA_storage" remote="OCA" groups="addons"/>
|
||||
|
|
|
|||
|
|
@ -14,9 +14,10 @@ fi
|
|||
echo "Install module '$2' on BD '$1'"
|
||||
|
||||
if [[ $# -eq 3 ]]; then
|
||||
./run.sh --no-http --stop-after-init --dev cg -d "$1" -i "$2" -u "$2" -c "$3"
|
||||
./run.sh --no-http --stop-after-init --limit-memory-soft=8589934592 --limit-memory-hard=10737418240 --dev cg -d "$1" -i "$2" -u "$2" -c "$3"
|
||||
# ./run.sh --no-http --stop-after-init fd --limit-memory-soft=2048*1024*1024 --dev cg -d "$1" -i "$2" -u "$2" -c "$3"
|
||||
else
|
||||
./run.sh --no-http --stop-after-init --dev cg -d "$1" -i "$2" -u "$2"
|
||||
./run.sh --no-http --stop-after-init --limit-memory-soft=8589934592 --limit-memory-hard=10737418240 --dev cg -d "$1" -i "$2" -u "$2"
|
||||
fi
|
||||
|
||||
retVal=$?
|
||||
|
|
|
|||
|
|
@ -22,21 +22,25 @@ def get_config():
|
|||
parser = argparse.ArgumentParser(
|
||||
formatter_class=argparse.RawDescriptionHelpFormatter,
|
||||
description="""\
|
||||
Restore database, use cache to clone to improve speed.
|
||||
DESCRIPTION
|
||||
Restore database, use cache to clone to improve speed.
|
||||
|
||||
SUGGESTION
|
||||
./script/database/db_restore.py -d test
|
||||
""",
|
||||
epilog="""\
|
||||
""",
|
||||
)
|
||||
# parser.add_argument('-d', '--dir', dest="dir", default="./",
|
||||
# help="Path of repo to change remote, including submodule.")
|
||||
parser.add_argument("--database", help="Database to manipulate.")
|
||||
parser.add_argument("-d", "--database", help="Database to manipulate.")
|
||||
parser.add_argument(
|
||||
"--image",
|
||||
default="erplibre_base",
|
||||
help=(
|
||||
"Image name to restore, from directory image_db, filename without"
|
||||
" '.zip'. Example, use erplibre_base to use image"
|
||||
" erplibre_base.zip."
|
||||
" erplibre_base.zip. Default value is erplibre_base"
|
||||
),
|
||||
)
|
||||
parser.add_argument(
|
||||
|
|
@ -134,6 +138,9 @@ def main():
|
|||
out = check_output(arg.split(" ")).decode()
|
||||
print(out)
|
||||
|
||||
if not config.clean_cache and not config.database:
|
||||
print("Nothing to do.")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
|||
|
|
@ -324,7 +324,9 @@ def add_configuration(dct_xml, file_name, config):
|
|||
conf_full["@folderName"] = conf_folder
|
||||
lst_configuration_full.insert(0, conf_full)
|
||||
else:
|
||||
_logger.info(f"Configuration already exist: '{s_unique_key}'")
|
||||
_logger.info(
|
||||
f"Configuration already exist: '{s_unique_key}'"
|
||||
)
|
||||
else:
|
||||
_logger.error(f"Cannot read file '{PATH_DEFAULT_CONFIGURATION}'")
|
||||
return has_change
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ EL_USER=${USER}
|
|||
#--------------------------------------------------
|
||||
echo "\n---- Install PostgreSQL Server ----"
|
||||
brew install postgresql
|
||||
brew services start postgresql
|
||||
|
||||
echo "\n---- Creating the ERPLibre PostgreSQL User ----"
|
||||
sudo su - postgres -c "createuser -s ${EL_USER}" 2> /dev/null || true
|
||||
|
|
|
|||
|
|
@ -692,13 +692,16 @@ def check_git_change():
|
|||
run_command(
|
||||
"./script/code_generator/check_git_change_code_generator.sh",
|
||||
"./addons/TechnoLibre_odoo-code-generator-template",
|
||||
test_name="Init check_git_change TechnoLibre_odoo-code-generator-template",
|
||||
test_name=(
|
||||
"Init check_git_change"
|
||||
" TechnoLibre_odoo-code-generator-template"
|
||||
),
|
||||
),
|
||||
run_command(
|
||||
"./script/code_generator/check_git_change_code_generator.sh",
|
||||
"./addons/OCA_server-tools",
|
||||
test_name="Init check_git_change OCA_server-tools",
|
||||
)
|
||||
),
|
||||
]
|
||||
commands = asyncio.gather(*task_list)
|
||||
tpl_result = loop.run_until_complete(commands)
|
||||
|
|
|
|||
Loading…
Reference in a new issue