diff --git a/README.md b/README.md index 94f47f4..beea697 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ERPLibre is a CRM/ERP platform including automated installation, maintenance, and development of open source modules of the Odoo community version. It is a "soft-fork" of the Odoo Community Edition (OCE), meaning it aims at contributing back -upstream. +upstream. It is based on a set of production-ready modules, supported by the Odoo Community Association (OCA) and an ecosystem of specialized companies. This solution ensures digital sovereignty in a local environment while integrating pre-trained Generative Transformers (GPT), bringing an additional dimension to data management and automation. @@ -15,7 +15,7 @@ Select a guide to install your environment. This has been tested in Debian 12 and Ubuntu 24.04 LTS. -**Note** : This is meant for a test environment, on a local network or similar environment not directly exposed to the Internet. +**Note** : This is meant for a test environment, on a local network or similar environment not directly exposed to the Internet. 1. Make sure Docker and nginx web server are installed:
```sudo apt install docker docker-compose nginx``` diff --git a/script/code_generator/search_class_model.py b/script/code_generator/search_class_model.py index f62eced..ce334ea 100755 --- a/script/code_generator/search_class_model.py +++ b/script/code_generator/search_class_model.py @@ -119,9 +119,7 @@ def search_and_replace( # new_file_content = ( # f'{f_lines[:t_index_second_quote]}"{models_name}"{f_lines[t_index_third_quote + len(second_char):]}' # ) - new_file_content = ( - f'{f_lines[:t_index_second_quote]}"{models_name}"{f_lines[t_index_third_quote + len(second_char):]}' - ) + new_file_content = f'{f_lines[:t_index_second_quote]}"{models_name}"{f_lines[t_index_third_quote + len(second_char):]}' return new_file_content diff --git a/script/database/image_db.py b/script/database/image_db.py index 44d9e6a..2a9f9ae 100755 --- a/script/database/image_db.py +++ b/script/database/image_db.py @@ -240,7 +240,10 @@ def main(): # not finish to empty the queue if dct_depend_image: - _logger.info("Missing dependencies, auto-run all image generation for last execution") + _logger.info( + "Missing dependencies, auto-run all image generation for last" + " execution" + ) for depend_image, lst_module in dct_depend_image.items(): lst_queue_parallel.append(lst_module) # print command to execute diff --git a/script/docker/docker_update_version.py b/script/docker/docker_update_version.py index b60da73..fd27dad 100755 --- a/script/docker/docker_update_version.py +++ b/script/docker/docker_update_version.py @@ -91,9 +91,9 @@ def edit_text(config): if is_find: key = "image:" value = lst_docker_info[i] - lst_docker_info[ - i - ] = f"{value[:value.find(key) + len(key)]} {config.prod_version}\n" + lst_docker_info[i] = ( + f"{value[:value.find(key) + len(key)]} {config.prod_version}\n" + ) break if "ERPLibre" in docker_info: is_find = True diff --git a/script/poetry/poetry_update.py b/script/poetry/poetry_update.py index 8bd4380..960d723 100755 --- a/script/poetry/poetry_update.py +++ b/script/poetry/poetry_update.py @@ -67,6 +67,7 @@ def get_lst_requirements_txt(): def get_lst_manifest_py(): return get_file_from_glob("__manifest__.py") + def get_file_from_glob(glob_txt): with open(".odoo-version") as txt: odoo_version = txt.read() @@ -77,7 +78,9 @@ def get_file_from_glob(glob_txt): a_dirname = os.path.dirname(a) if a_dirname.startswith(".repo/") or a_dirname.startswith(".venv"): continue - if a_dirname.startswith("addons") and not a_dirname.startswith(f"addons.odoo{odoo_version}"): + if a_dirname.startswith("addons") and not a_dirname.startswith( + f"addons.odoo{odoo_version}" + ): continue lst_v.append(a) return lst_v diff --git a/script/selenium/web_login.py b/script/selenium/web_login.py index 81f5616..fff299f 100755 --- a/script/selenium/web_login.py +++ b/script/selenium/web_login.py @@ -38,13 +38,13 @@ def run(config, selenium_tool): try: connexion_button = selenium_tool.driver.find_element( By.XPATH, - "/html/body/div/div/div/form/div[3]/button" + "/html/body/div/div/div/form/div[3]/button", # '//button[contains(text(), "Log in")]' ) except Exception: connexion_button = selenium_tool.driver.find_element( By.XPATH, - "/html/body/div/main/div/form/div[3]/button" + "/html/body/div/main/div/form/div[3]/button", # '//button[contains(text(), "Connexion")]' ) diff --git a/script/version/update_env_version.py b/script/version/update_env_version.py index 1de89b2..43656fb 100755 --- a/script/version/update_env_version.py +++ b/script/version/update_env_version.py @@ -483,7 +483,9 @@ class Update: pycharm_is_installed = os.path.exists(".idea") if not pycharm_is_installed or not self.execute_log: return - os.system("./.venv/bin/python ./script/ide/pycharm_configuration.py --init") + os.system( + "./.venv/bin/python ./script/ide/pycharm_configuration.py --init" + ) def install_erplibre(self): self.execute_log.append(f"Dev installation")